MDEV-7144 Warnings "bytes lost" during server shutdown after running connect.part_file test in buildbot

This commit is contained in:
Sergei Golubchik 2014-11-22 11:56:29 +01:00
parent 52b25934d7
commit 912bbfda12

View File

@ -603,8 +603,11 @@ int mysql_update(THD *thd,
if (query_plan.index == MAX_KEY || (select && select->quick)) if (query_plan.index == MAX_KEY || (select && select->quick))
{ {
if (init_read_record(&info, thd, table, select, 0, 1, FALSE)) if (init_read_record(&info, thd, table, select, 0, 1, FALSE))
{
close_cached_file(&tempfile);
goto err; goto err;
} }
}
else else
init_read_record_idx(&info, thd, table, 1, query_plan.index, reverse); init_read_record_idx(&info, thd, table, 1, query_plan.index, reverse);