提交 2ddfca51 编写于 作者: C Cary Xu

other: code optimization for assert condition

上级 753b7253
...@@ -1737,7 +1737,7 @@ int32_t tdRSmaProcessExecImpl(SSma *pSma, ERsmaExecType type) { ...@@ -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) { ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册