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:
parent
3fbbe686ee
commit
a30d3cd847
@ -3700,7 +3700,7 @@ ha_innobase::store_lock(
|
|||||||
binlog) requires the use of a locking read */
|
binlog) requires the use of a locking read */
|
||||||
|
|
||||||
prebuilt->select_lock_type = LOCK_S;
|
prebuilt->select_lock_type = LOCK_S;
|
||||||
} else {
|
} else if (lock_type != TL_IGNORE) {
|
||||||
/* We set possible LOCK_X value in external_lock, not yet
|
/* We set possible LOCK_X value in external_lock, not yet
|
||||||
here even if this would be SELECT ... FOR UPDATE */
|
here even if this would be SELECT ... FOR UPDATE */
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user