fix: while condition

This commit is contained in:
Cary Xu 2022-08-24 18:15:37 +08:00
parent 0e094b3811
commit 39cd95d825
1 changed files with 1 additions and 1 deletions

View File

@ -1707,7 +1707,7 @@ int32_t tdRSmaProcessExecImpl(SSma *pSma, ERsmaExecType type) {
if (batchMax > 1) {
batchMax = 100 / batchMax;
}
while (occupied || (++batchCnt > batchMax)) { // greedy mode
while (occupied || (++batchCnt < batchMax)) { // greedy mode
taosReadAllQitems(pInfo->queue, pInfo->qall); // queue has mutex lock
int32_t qallItemSize = taosQallItemSize(pInfo->qall);
if (qallItemSize > 0) {