Commit 3531347e authored by unknown's avatar unknown

lock0lock.c:

  Fix a bug in the query cache algorithm for the AUTOCOMMIT=0 case


innobase/lock/lock0lock.c:
  Fix a bug in the query cache algorithm for the AUTOCOMMIT=0 case
parent 4bd6c356
...@@ -3602,7 +3602,8 @@ lock_release_off_kernel( ...@@ -3602,7 +3602,8 @@ lock_release_off_kernel(
ut_ad(lock_get_type(lock) == LOCK_TABLE); ut_ad(lock_get_type(lock) == LOCK_TABLE);
if (lock_get_mode(lock) != LOCK_IS if (lock_get_mode(lock) != LOCK_IS
&& (trx->insert_undo || trx->update_undo)) { && 0 != ut_dulint_cmp(trx->undo_no,
ut_dulint_zero)) {
/* The trx may have modified the table. /* The trx may have modified the table.
We block the use of the MySQL query cache We block the use of the MySQL query cache
......
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