mirror of
https://github.com/MariaDB/server.git
synced 2026-05-17 20:37:12 +02:00
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
This commit is contained in:
parent
f17f7a43ba
commit
c55c292832
9 changed files with 70 additions and 95 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue