summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index 1b4ffd0c61e..4af078e84cd 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -994,6 +994,8 @@ void close_thread_table(THD *thd, TABLE **table_ptr)
table->file->update_global_table_stats();
table->file->update_global_index_stats();
}
+ if (table->update_handler)
+ table->delete_update_handler();
/*
This look is needed to allow THD::notify_shared_lock() to