[td-225] fix bugs in read data from cache.

This commit is contained in:
Haojun Liao 2020-05-20 15:07:27 +08:00
parent 150067fc68
commit 2c62139080
1 changed files with 2 additions and 2 deletions

View File

@ -1466,8 +1466,8 @@ static int tsdbReadRowsFromCache(SSkipListIterator* pIter, STable* pTable, TSKEY
}
}
numOfRows++;
if (numOfRows >= maxRowsToRead) {
if (++numOfRows >= maxRowsToRead) {
tSkipListIterNext(pIter);
break;
}