summaryrefslogtreecommitdiff
path: root/storage/mroonga
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2020-06-13 21:23:19 +0200
committerSergei Golubchik <serg@mariadb.org>2020-07-04 01:44:46 +0200
commitc55c292832e2776d37e06c43174ac006e00143a2 (patch)
treee83cc7fd44b132de7a4c33975737825ccd18907e /storage/mroonga
parentf17f7a43ba7da44608618f9e612f9808d363da23 (diff)
downloadmariadb-git-c55c292832e2776d37e06c43174ac006e00143a2.tar.gz
introduce hton->drop_table() method
first step in moving drop table out of the handler. todo: other methods that don't need an open table for now hton->drop_table is optional, for backward compatibility reasons
Diffstat (limited to 'storage/mroonga')
-rw-r--r--storage/mroonga/ha_mroonga.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/storage/mroonga/ha_mroonga.cpp b/storage/mroonga/ha_mroonga.cpp
index 6f302e89213..4747495fd22 100644
--- a/storage/mroonga/ha_mroonga.cpp
+++ b/storage/mroonga/ha_mroonga.cpp
@@ -5031,19 +5031,8 @@ int ha_mroonga::wrapper_delete_table(const char *name,
handlerton *wrap_handlerton,
const char *table_name)
{
- int error = 0;
MRN_DBUG_ENTER_METHOD();
-
- handler *hnd = get_new_handler(NULL, current_thd->mem_root, wrap_handlerton);
- if (!hnd)
- {
- DBUG_RETURN(HA_ERR_OUT_OF_MEM);
- }
-
- error = hnd->ha_delete_table(name);
- delete hnd;
-
- DBUG_RETURN(error);
+ DBUG_RETURN(wrap_handlerton->drop_table(wrap_handlerton, name));
}
int ha_mroonga::generic_delete_table(const char *name, const char *table_name)