Bug #60342 | InnoDB, weird result on DML | ||
---|---|---|---|
Submitted: | 4 Mar 2011 15:43 | Modified: | 4 Mar 2011 16:15 |
Reporter: | f p | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Storage Engines | Severity: | S3 (Non-critical) |
Version: | 5.5.9 | OS: | Linux |
Assigned to: | CPU Architecture: | Any |
[4 Mar 2011 15:43]
f p
[4 Mar 2011 15:54]
Valeriy Kravchuk
Please, send the output of: show variables like '%isilation%'; show variables like 'autocomm%'; from your server.
[4 Mar 2011 15:58]
f p
on both server: mysql> show variables like '%isolation%'; +---------------+-----------------+ | Variable_name | Value | +---------------+-----------------+ | tx_isolation | REPEATABLE-READ | +---------------+-----------------+ mysql> show variables like 'autocomm%'; +---------------+-------+ | Variable_name | Value | +---------------+-------+ | autocommit | OFF | +---------------+-------+
[4 Mar 2011 16:05]
Valeriy Kravchuk
As you have autocommit=OFF, bith your SELECTs in the second terminal are in the same transaction with repeatable read isolation level. So, they see data as they were at the moment of the first SELECT and ignore committed update that happened after that. Read http://dev.mysql.com/doc/refman/5.5/en/innodb-consistent-read.html.
[4 Mar 2011 16:15]
f p
Well, thanks a ton Valeriy!