[td-225] fix bugs in read data from cache.
This commit is contained in:
parent
150067fc68
commit
2c62139080
|
@ -1466,8 +1466,8 @@ static int tsdbReadRowsFromCache(SSkipListIterator* pIter, STable* pTable, TSKEY
|
|||
}
|
||||
}
|
||||
|
||||
numOfRows++;
|
||||
if (numOfRows >= maxRowsToRead) {
|
||||
if (++numOfRows >= maxRowsToRead) {
|
||||
tSkipListIterNext(pIter);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue