restore the lost (in mysql-5.6) bugfix for

Bug#13510739 63775: SERVER CRASH ON HANDLER READ NEXT AFTER DELETE RECORD.
This commit is contained in:
Sergei Golubchik 2012-10-28 10:00:32 +01:00
parent b8cab18d40
commit bba8b263c2

View File

@ -4686,7 +4686,8 @@ locks_ok:
applicable to unique secondary indexes. Current behaviour is
to widen the scope of a lock on an already delete marked record
if the same record is deleted twice by the same transaction */
if (index == clust_index && unique_search) {
if (index == clust_index && unique_search
&& !prebuilt->used_in_HANDLER) {
err = DB_RECORD_NOT_FOUND;
goto normal_return;