1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Adding in an ha_end() call. This is the first part of the patch I and Monty have agreed on. In the future engines will have the option of shutting down more quickly via the panic call, or just shutting down during the unloading of a plugin.

sql/handler.cc:
  Adding ha_end
sql/handler.h:
  Function declaration for ha_end()
sql/mysqld.cc:
  Adding ha_end call.
This commit is contained in:
unknown
2006-10-31 20:10:32 -08:00
parent 78fd640b8b
commit b014bd22e4
3 changed files with 19 additions and 0 deletions

View File

@@ -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)
{