fix/TD-31891-remove-void-sync1-fix-case

This commit is contained in:
dmchen 2024-09-20 08:32:20 +00:00
parent 84b7eae93c
commit 1a031d7dcd
1 changed files with 4 additions and 2 deletions

View File

@ -991,8 +991,10 @@ static int32_t syncHbTimerStart(SSyncNode* pSyncNode, SSyncTimer* pSyncTimer) {
static int32_t syncHbTimerStop(SSyncNode* pSyncNode, SSyncTimer* pSyncTimer) {
int32_t ret = 0;
(void)atomic_add_fetch_64(&pSyncTimer->logicClock, 1);
if (!taosTmrStop(pSyncTimer->pTimer)) {
return TSDB_CODE_SYN_INTERNAL_ERROR;
if (taosTmrStop(pSyncTimer->pTimer) == false) {
sError("vgId:%d, failed to stop hb timer, return false", pSyncNode->vgId);
} else {
sError("vgId:%d, stop hb timer, return true", pSyncNode->vgId);
}
pSyncTimer->pTimer = NULL;
syncHbTimerDataRemove(pSyncTimer->hbDataRid);