other: code optimization for assert condition
This commit is contained in:
parent
753b725300
commit
2ddfca5149
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue