Commit a2aac2f6 authored by marko's avatar marko

branches/zip: trx_set_dict_operation(): Allow a transition from

TRX_DICT_OP_TABLE to TRX_DICT_OP_TABLE.
parent cd247197
...@@ -187,8 +187,15 @@ trx_set_dict_operation( ...@@ -187,8 +187,15 @@ trx_set_dict_operation(
ut_error; ut_error;
break; break;
case TRX_DICT_OP_TABLE: case TRX_DICT_OP_TABLE:
ut_ad(old_op == TRX_DICT_OP_NONE switch (old_op) {
|| old_op == TRX_DICT_OP_INDEX); case TRX_DICT_OP_NONE:
case TRX_DICT_OP_INDEX:
case TRX_DICT_OP_TABLE:
goto ok;
case TRX_DICT_OP_INDEX_MAY_WAIT:
break;
}
ut_error;
break; break;
case TRX_DICT_OP_INDEX: case TRX_DICT_OP_INDEX:
ut_ad(old_op == TRX_DICT_OP_NONE ut_ad(old_op == TRX_DICT_OP_NONE
...@@ -199,6 +206,7 @@ trx_set_dict_operation( ...@@ -199,6 +206,7 @@ trx_set_dict_operation(
|| old_op == TRX_DICT_OP_INDEX); || old_op == TRX_DICT_OP_INDEX);
break; break;
} }
ok:
#endif /* UNIV_DEBUG */ #endif /* UNIV_DEBUG */
trx->dict_operation = op; trx->dict_operation = op;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment