TD-1143
This commit is contained in:
parent
712d8d6625
commit
c71ab49d6b
|
@ -234,17 +234,22 @@ static void monitorInitDatabaseCb(void *param, TAOS_RES *result, int32_t code) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void monitorStopSystem() {
|
void monitorStopSystem() {
|
||||||
monitorInfo("monitor module is stopped");
|
if (tsMonitorConn.state == MONITOR_STATE_STOPPED) return;
|
||||||
monitorExecuteSQLFp = NULL;
|
|
||||||
tsMonitorConn.state = MONITOR_STATE_STOPPED;
|
tsMonitorConn.state = MONITOR_STATE_STOPPED;
|
||||||
|
monitorExecuteSQLFp = NULL;
|
||||||
|
|
||||||
|
monitorInfo("monitor module is stopped");
|
||||||
|
|
||||||
if (tsMonitorConn.initTimer != NULL) {
|
if (tsMonitorConn.initTimer != NULL) {
|
||||||
taosTmrStopA(&(tsMonitorConn.initTimer));
|
taosTmrStopA(&(tsMonitorConn.initTimer));
|
||||||
}
|
}
|
||||||
if (tsMonitorConn.timer != NULL) {
|
if (tsMonitorConn.timer != NULL) {
|
||||||
taosTmrStopA(&(tsMonitorConn.timer));
|
taosTmrStopA(&(tsMonitorConn.timer));
|
||||||
}
|
}
|
||||||
|
if (tsMonitorConn.conn != NULL) {
|
||||||
taos_close(tsMonitorConn.conn);
|
taos_close(tsMonitorConn.conn);
|
||||||
|
tsMonitorConn.conn = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void monitorCleanUpSystem() {
|
void monitorCleanUpSystem() {
|
||||||
|
|
Loading…
Reference in New Issue