Commit 912bbfda authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-7144 Warnings "bytes lost" during server shutdown after running...

MDEV-7144 Warnings "bytes lost" during server shutdown after running connect.part_file test in buildbot
parent 52b25934
...@@ -603,7 +603,10 @@ int mysql_update(THD *thd, ...@@ -603,7 +603,10 @@ 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);
......
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