other: code optimization for assert condition

This commit is contained in:
Cary Xu 2022-08-30 19:29:26 +08:00
parent 753b725300
commit 2ddfca5149
1 changed files with 2 additions and 2 deletions

View File

@ -1737,7 +1737,7 @@ int32_t tdRSmaProcessExecImpl(SSma *pSma, ERsmaExecType type) {
break; break;
} }
} }
ASSERT(1 == atomic_val_compare_exchange_8(&pInfo->assigned, 1, 0)); atomic_val_compare_exchange_8(&pInfo->assigned, 1, 0);
} }
} }
if (type == RSMA_EXEC_COMMIT) { if (type == RSMA_EXEC_COMMIT) {
@ -1766,7 +1766,7 @@ int32_t tdRSmaProcessExecImpl(SSma *pSma, ERsmaExecType type) {
} }
// tdRSmaFetchAllResult(pSma, pInfo, pSubmitArr); // tdRSmaFetchAllResult(pSma, pInfo, pSubmitArr);
ASSERT(1 == atomic_val_compare_exchange_8(&pInfo->assigned, 1, 0)); atomic_val_compare_exchange_8(&pInfo->assigned, 1, 0);
} }
} }
ASSERT(taosQueueItemSize(pInfo->iQueue) == 0); ASSERT(taosQueueItemSize(pInfo->iQueue) == 0);