fix:[TS-4921]refactor reporting logic for slow log

This commit is contained in:
wangmm0220 2024-07-02 16:23:55 +08:00
parent d3fcab5c0d
commit a21aed7084
1 changed files with 2 additions and 2 deletions

View File

@ -498,7 +498,7 @@ static void monitorSendSlowLogAtRunning(int64_t clusterId){
if(data != NULL){ if(data != NULL){
sendSlowLog(clusterId, data, pClient->pFile, pClient->offset, SLOW_LOG_READ_RUNNING, NULL, pInst->pTransporter, &ep); sendSlowLog(clusterId, data, pClient->pFile, pClient->offset, SLOW_LOG_READ_RUNNING, NULL, pInst->pTransporter, &ep);
} }
uDebug("[monitor] monitorReadSendSlowLog send slow log:%s", data); uDebug("[monitor] monitorSendSlowLogAtRunning send slow log:%s", data);
taosMemoryFree(data); taosMemoryFree(data);
} }
} }
@ -530,7 +530,7 @@ static bool monitorSendSlowLogAtQuit(int64_t clusterId) {
if(data != NULL){ if(data != NULL){
sendSlowLog(clusterId, data, pClient->pFile, pClient->offset, SLOW_LOG_READ_QUIT, NULL, pInst->pTransporter, &ep); sendSlowLog(clusterId, data, pClient->pFile, pClient->offset, SLOW_LOG_READ_QUIT, NULL, pInst->pTransporter, &ep);
} }
uDebug("[monitor] monitorReadSendSlowLog send slow log:%s", data); uDebug("[monitor] monitorSendSlowLogAtQuit send slow log:%s", data);
taosMemoryFree(data); taosMemoryFree(data);
} }
return false; return false;