ha_innobase.cc:

Backport from 4.0: fix potential bug if store_lock is called with TL_IGNORE in the middle of a query
This commit is contained in:
heikki@hundin.mysql.fi 2003-02-05 01:42:07 +02:00
parent 3fbbe686ee
commit a30d3cd847

View File

@ -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 */