mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
Merge ssmith@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/stewart/Documents/MySQL/5.0/main
This commit is contained in:
commit
6549a72e4f
3 changed files with 9 additions and 1 deletions
|
@ -32,6 +32,7 @@ public:
|
|||
~ConfigRetriever();
|
||||
|
||||
int do_connect(int no_retries, int retry_delay_in_seconds, int verbose);
|
||||
int disconnect();
|
||||
|
||||
/**
|
||||
* Get configuration for current node.
|
||||
|
|
|
@ -107,6 +107,12 @@ ConfigRetriever::do_connect(int no_retries,
|
|||
0 : -1;
|
||||
}
|
||||
|
||||
int
|
||||
ConfigRetriever::disconnect()
|
||||
{
|
||||
return ndb_mgm_disconnect(m_handle);
|
||||
}
|
||||
|
||||
//****************************************************************************
|
||||
//****************************************************************************
|
||||
//****************************************************************************
|
||||
|
|
|
@ -353,7 +353,8 @@ int main(int argc, char** argv)
|
|||
|
||||
g_eventLogger.info("Shutting down server...");
|
||||
glob.socketServer->stopServer();
|
||||
glob.socketServer->stopSessions();
|
||||
glob.mgmObject->get_config_retriever()->disconnect();
|
||||
glob.socketServer->stopSessions(true);
|
||||
g_eventLogger.info("Shutdown complete");
|
||||
return 0;
|
||||
error_end:
|
||||
|
|
Loading…
Add table
Reference in a new issue