From 44e29059830f2db1c945ffacfdc3ed344429925d Mon Sep 17 00:00:00 2001 From: wangmm0220 Date: Fri, 13 Sep 2024 15:25:01 +0800 Subject: [PATCH] fix:conflicts from 3.0 --- source/client/src/clientMonitor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,