Bug #58157 | InnoDB locks an unmatched row even though using RBR and RC | ||
---|---|---|---|
Submitted: | 12 Nov 2010 9:21 | Modified: | 16 Jul 2012 23:40 |
Reporter: | Yoshinori Matsunobu (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: InnoDB Plugin storage engine | Severity: | S3 (Non-critical) |
Version: | 5.1.51, 5.0, 5.6.1 | OS: | Any |
Assigned to: | Marko Mäkelä | CPU Architecture: | Any |
Tags: | innodb |
[12 Nov 2010 9:21]
Yoshinori Matsunobu
[12 Nov 2010 13:31]
Peter Laursen
If I understand this is related to the server 'innodb_autoinc_lock_mode' variable. Refer http://dev.mysql.com/doc/refman/5.1/en/innodb-auto-increment-handling.html. The default setting for 'innodb_autoinc_lock_mode' is not the same in MySQL 5.1.x as in earlier versions. Peter (not a MySQL person - but reported almost same earlier!)
[19 Nov 2010 18:42]
Sveta Smirnova
Thank you for the reprot. Verified as described. Can be same as bug #57973
[16 Jul 2012 23:40]
John Russell
Added to changelog for 5.1.66, 5.5.28, 5.6.7, 5.7.0: When a SELECT ... FOR UPDATE, UPDATE, or other SQL statement scanned rows in an InnoDB table using a < or <= operator in a WHERE clause, the next row after the affected range could also be locked. This issue could cause a lock wait timeout for a row that was not expected to be locked. The issue occurred under various isolation levels, such as READ COMMITTED and REPEATABLE READ.