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 sql/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
This commit is contained in:
parent
138e44b873
commit
8510e74765
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user