Commit a30d3cd8 authored by heikki@hundin.mysql.fi's avatar heikki@hundin.mysql.fi
Browse files

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 3fbbe686
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */