Commit 93157fcd authored by marko's avatar marko

branches/zip: row_merge_lock_table(): Clear the trx->dict_operation flag

for the duration of the lock_table() call in order to avoid a bogus warning.
parent 65d4e630
...@@ -1674,8 +1674,16 @@ row_merge_lock_table( ...@@ -1674,8 +1674,16 @@ row_merge_lock_table(
thr->run_node = thr; thr->run_node = thr;
thr->prev_node = thr->common.parent; thr->prev_node = thr->common.parent;
/* Temporarily clear the dict_operation flag in order to
avoid a bogus warning in lock_table_enqueue_waiting(). */
ut_ad(trx->dict_operation == 1);
trx->dict_operation = 0;
err = lock_table(0, table, LOCK_X, thr); err = lock_table(0, table, LOCK_X, thr);
/* Restore the dict_operation flag. */
trx->dict_operation = 1;
trx->error_state = err; trx->error_state = err;
if (UNIV_LIKELY(err == DB_SUCCESS)) { if (UNIV_LIKELY(err == DB_SUCCESS)) {
......
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