summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorheikki@hundin.mysql.fi <>2003-02-05 01:42:07 +0200
committerheikki@hundin.mysql.fi <>2003-02-05 01:42:07 +0200
commita30d3cd8473e7d4ad3412a042741f34dcb004e80 (patch)
tree66678af776f7a3ccfbc72cc1c3ec3854590a4e8c /sql
parent3fbbe686ee802461ef293181f952911c253639a6 (diff)
downloadmariadb-git-a30d3cd8473e7d4ad3412a042741f34dcb004e80.tar.gz
ha_innobase.cc:
Backport from 4.0: fix potential bug if store_lock is called with TL_IGNORE in the middle of a query
Diffstat (limited to 'sql')
-rw-r--r--sql/ha_innobase.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_innobase.cc b/sql/ha_innobase.cc
index 7045e5c31d5..5b2af70f34e 100644
--- a/sql/ha_innobase.cc
+++ b/sql/ha_innobase.cc
@@ -3700,7 +3700,7 @@ ha_innobase::store_lock(
binlog) requires the use of a locking read */
prebuilt->select_lock_type = LOCK_S;
- } else {
+ } else if (lock_type != TL_IGNORE) {
/* We set possible LOCK_X value in external_lock, not yet
here even if this would be SELECT ... FOR UPDATE */