repeatable-read

MySQL Repeatable Read isolation level and Lost Update phenomena

 ̄綄美尐妖づ 提交于 2020-06-11 14:42:08
问题 In High Performance Java Persistence book's 6.3.3.3 section it's written that Lost Update phenomena is possible in MySQL Repeatable Read isolation level. This is the screenshot: Assuming the following(isolation level is REPEATABLE READ): tx1 | tx2 ----------------------------------------------------------------------------------- START TRANSACTION; | SELECT * FROM test WHERE id = 1; | ( say, DB_TRX_ID = 7 at this moment) | | | START TRANSACTION; | SELECT * FROM test WHERE id = 1; | UPDATE