From 912bbfda128bbfa049eb0d8fc7789eebe8553e6b Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sat, 22 Nov 2014 11:56:29 +0100 Subject: [PATCH] MDEV-7144 Warnings "bytes lost" during server shutdown after running connect.part_file test in buildbot --- sql/sql_update.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sql/sql_update.cc b/sql/sql_update.cc index d676ec11ad0..6c4d864e75a 100644 --- a/sql/sql_update.cc +++ b/sql/sql_update.cc @@ -603,7 +603,10 @@ int mysql_update(THD *thd, if (query_plan.index == MAX_KEY || (select && select->quick)) { if (init_read_record(&info, thd, table, select, 0, 1, FALSE)) + { + close_cached_file(&tempfile); goto err; + } } else init_read_record_idx(&info, thd, table, 1, query_plan.index, reverse);