ha_innodb.cc:

  Fix bug #12410 : InnoDB was too permissive with LOCK TABLE ... READ LOCAL, and alowed new inserts to the table; we now make READ LOCAL equivalent to READ for InnoDB; note that this will cause slightly more locking in mysqldump, but makes the InnoDB table dumps consistent with MyISAM table dumps; note that the real code change patch was accidentally pushed with my another patch 5 minutes ago
parent 9aa5a86a
...@@ -5449,7 +5449,9 @@ ha_innobase::store_lock( ...@@ -5449,7 +5449,9 @@ ha_innobase::store_lock(
reader). To get a similar effect on an InnoDB table, reader). To get a similar effect on an InnoDB table,
we must use LOCK TABLES ... READ. We convert the lock we must use LOCK TABLES ... READ. We convert the lock
type here, so that for InnoDB, READ LOCAL is type here, so that for InnoDB, READ LOCAL is
equivalent to READ. */ equivalent to READ. This will change the InnoDB
behavior in mysqldump, so that dumps of InnoDB tables
are consistent with dumps of MyISAM tables. */
lock_type = TL_READ_NO_INSERT; lock_type = TL_READ_NO_INSERT;
} }
......
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