diff --git a/source/client/src/clientMonitor.c b/source/client/src/clientMonitor.c index f87de30dff..aeaa3bef8b 100644 --- a/source/client/src/clientMonitor.c +++ b/source/client/src/clientMonitor.c @@ -767,7 +767,8 @@ static void* monitorThreadFunc(void* param) { } MonitorSlowLogData* slowLogData = NULL; - if (taosReadQitem(monitorQueue, (void**)&slowLogData) != 0) { + taosReadQitem(monitorQueue, (void**)&slowLogData); + if (slowLogData != NULL) { if (slowLogData->type == SLOW_LOG_READ_BEGINNIG && quitCnt == 0) { if (slowLogData->pFile != NULL) { monitorSendSlowLogAtBeginning(slowLogData->clusterId, &(slowLogData->fileName), slowLogData->pFile,