row_search_for_mysql(): Never try semi-consistent read in unique searches.

They are only useful in table scans. (Bug #52663)
This commit is contained in:
Marko Mäkelä 2010-04-26 13:27:25 +03:00
commit 30b15fae14
8 changed files with 129 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2010-04-26 The InnoDB Team
* row/row0sel.c:
Fix Bug#52663 Lost update incrementing column value under
READ COMMITTED isolation level
2010-04-22 The InnoDB Team
* include/dict0boot.h, dict/dict0boot.c:

View file

@ -4027,6 +4027,7 @@ no_gap_lock:
case DB_LOCK_WAIT:
if (UNIV_LIKELY(prebuilt->row_read_type
!= ROW_READ_TRY_SEMI_CONSISTENT)
|| unique_search
|| index != clust_index) {
goto lock_wait_or_error;