From cc82cd9a882475d384ded385d38103f855ef7a0d Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 25 Sep 2003 00:24:06 +0200 Subject: a small comment about why we call end_io_cache in mysql_load sql/sql_load.cc: small comment --- sql/sql_load.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sql/sql_load.cc b/sql/sql_load.cc index ca540a8cdc0..e692e7b8dab 100644 --- a/sql/sql_load.cc +++ b/sql/sql_load.cc @@ -336,6 +336,11 @@ int mysql_load(THD *thd,sql_exchange *ex,TABLE_LIST *table_list, } else { + /* + As already explained above, we need to call end_io_cache() or the last + block will be logged only after Execute_load_log_event (which is wrong), + when read_info is destroyed. + */ read_info.end_io_cache(); if (lf_info.wrote_create_file) { -- cgit v1.2.1