summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 4beef164ee1..01f73347397 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -510,6 +510,23 @@ int ha_init()
DBUG_RETURN(error);
}
+int ha_end()
+{
+ int error= 0;
+ DBUG_ENTER("ha_end");
+
+
+ /*
+ This should be eventualy based on the graceful shutdown flag.
+ So if flag is equal to HA_PANIC_CLOSE, the deallocate
+ the errors.
+ */
+ if (ha_finish_errors())
+ error= 1;
+
+ DBUG_RETURN(error);
+}
+
static my_bool dropdb_handlerton(THD *unused1, st_plugin_int *plugin,
void *path)
{