Merge pull request #16519 from taosdata/feature/3.0_interval_hash_optimize

fix: code adjust for assert condition
This commit is contained in:
Shengliang Guan 2022-08-31 11:11:38 +08:00 committed by GitHub
commit 152822798f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);