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(
ut_error;
break;
case TRX_DICT_OP_TABLE:
ut_ad(old_op == TRX_DICT_OP_NONE
|| old_op == TRX_DICT_OP_INDEX);
switch (old_op) {
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;
case TRX_DICT_OP_INDEX:
ut_ad(old_op == TRX_DICT_OP_NONE
......@@ -199,6 +206,7 @@ trx_set_dict_operation(
|| old_op == TRX_DICT_OP_INDEX);
break;
}
ok:
#endif /* UNIV_DEBUG */
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