fix: while condition
This commit is contained in:
parent
0e094b3811
commit
39cd95d825
|
@ -1707,7 +1707,7 @@ int32_t tdRSmaProcessExecImpl(SSma *pSma, ERsmaExecType type) {
|
||||||
if (batchMax > 1) {
|
if (batchMax > 1) {
|
||||||
batchMax = 100 / batchMax;
|
batchMax = 100 / batchMax;
|
||||||
}
|
}
|
||||||
while (occupied || (++batchCnt > batchMax)) { // greedy mode
|
while (occupied || (++batchCnt < batchMax)) { // greedy mode
|
||||||
taosReadAllQitems(pInfo->queue, pInfo->qall); // queue has mutex lock
|
taosReadAllQitems(pInfo->queue, pInfo->qall); // queue has mutex lock
|
||||||
int32_t qallItemSize = taosQallItemSize(pInfo->qall);
|
int32_t qallItemSize = taosQallItemSize(pInfo->qall);
|
||||||
if (qallItemSize > 0) {
|
if (qallItemSize > 0) {
|
||||||
|
|
Loading…
Reference in New Issue