summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc18
1 files changed, 17 insertions, 1 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 6bd8938fdca..e6adb4fdd93 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -1,5 +1,5 @@
/* Copyright (c) 2000, 2016, Oracle and/or its affiliates.
- Copyright (c) 2009, 2019, MariaDB Corporation.
+ Copyright (c) 2009, 2020, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -747,6 +747,22 @@ void ha_drop_database(char* path)
}
+static my_bool reset_master_handlerton(THD *, plugin_ref plugin, void *)
+{
+ handlerton *hton= plugin_hton(plugin);
+ if (hton->reset_master)
+ hton->reset_master();
+ return FALSE;
+}
+
+
+void ha_reset_master()
+{
+ plugin_foreach(NULL, reset_master_handlerton, MYSQL_STORAGE_ENGINE_PLUGIN,
+ NULL);
+}
+
+
static my_bool checkpoint_state_handlerton(THD *unused1, plugin_ref plugin,
void *disable)
{