Commit c9420250 authored by unknown's avatar unknown

ha_innobase.cc:

  Backport from 4.0: fix potential bug if store_lock is called with TL_IGNORE in the middle of a query


sql/ha_innobase.cc:
  Backport from 4.0: fix potential bug if store_lock is called with TL_IGNORE in the middle of a query
parent 9e2c2fe8
...@@ -3700,7 +3700,7 @@ ha_innobase::store_lock( ...@@ -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 */
......
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