summaryrefslogtreecommitdiff
path: root/innobase/lock/lock0lock.c
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2003-01-16 18:35:04 +0200
committerunknown <heikki@hundin.mysql.fi>2003-01-16 18:35:04 +0200
commit3531347e8cd20482a06a192e965f50990a8a72f7 (patch)
tree16857da8486384ad46623b3f1df3a29a150143c5 /innobase/lock/lock0lock.c
parent4bd6c3564fa713ffd2ac63f4810b04b8589c042e (diff)
downloadmariadb-git-3531347e8cd20482a06a192e965f50990a8a72f7.tar.gz
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
Diffstat (limited to 'innobase/lock/lock0lock.c')
-rw-r--r--innobase/lock/lock0lock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/innobase/lock/lock0lock.c b/innobase/lock/lock0lock.c
index 7b08d6b89b8..d4329c4873c 100644
--- a/innobase/lock/lock0lock.c
+++ b/innobase/lock/lock0lock.c
@@ -3602,7 +3602,8 @@ lock_release_off_kernel(
ut_ad(lock_get_type(lock) == LOCK_TABLE);
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.
We block the use of the MySQL query cache