|
|
|
|
@ -1248,6 +1248,16 @@ void ProxySQL_Main_shutdown_all_modules() {
|
|
|
|
|
pthread_mutex_unlock(&GloVars.global.ext_glomth_mutex);
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
|
std::cerr << "GloMTH shutdown in ";
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
if (GloPTH) {
|
|
|
|
|
cpu_timer t;
|
|
|
|
|
pthread_mutex_lock(&GloVars.global.ext_glopth_mutex);
|
|
|
|
|
delete GloPTH;
|
|
|
|
|
GloPTH = NULL;
|
|
|
|
|
pthread_mutex_unlock(&GloVars.global.ext_glopth_mutex);
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
|
std::cerr << "GloPTH shutdown in ";
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
if (GloMyLogger) {
|
|
|
|
|
@ -1277,12 +1287,22 @@ void ProxySQL_Main_shutdown_all_modules() {
|
|
|
|
|
std::cerr << "GloAdmin shutdown in ";
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
if (MyHGM)
|
|
|
|
|
{
|
|
|
|
|
cpu_timer t;
|
|
|
|
|
MyHGM->shutdown();
|
|
|
|
|
delete MyHGM;
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
|
std::cerr << "GloHGM shutdown in ";
|
|
|
|
|
std::cerr << "GloMyHGM shutdown in ";
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
if (PgHGM)
|
|
|
|
|
{
|
|
|
|
|
cpu_timer t;
|
|
|
|
|
PgHGM->shutdown();
|
|
|
|
|
delete PgHGM;
|
|
|
|
|
#ifdef DEBUG
|
|
|
|
|
std::cerr << "GloPgHGM shutdown in ";
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
if (GloMyStmt) {
|
|
|
|
|
|