Commit ceacb034 authored by unknown's avatar unknown

Comment on handler::unlock_row()

parent edf6ad90
...@@ -5762,8 +5762,16 @@ sub_select(JOIN *join,JOIN_TAB *join_tab,bool end_of_records) ...@@ -5762,8 +5762,16 @@ sub_select(JOIN *join,JOIN_TAB *join_tab,bool end_of_records)
return 0; return 0;
} }
else else
{
/*
This row failed selection, release lock on it.
XXX: There is no table handler in MySQL which makes use of this
call. It's kept from Gemini times. A lot of new code was added
recently (i. e. subselects) without having it in mind.
*/
info->file->unlock_row(); info->file->unlock_row();
} }
}
} while (!(error=info->read_record(info)) && !(*report_error)); } while (!(error=info->read_record(info)) && !(*report_error));
} }
if (error > 0 || (*report_error)) // Fatal error if (error > 0 || (*report_error)) // Fatal error
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment