Merge pull request #1970 from taosdata/feature/query
[td-225] fix bugs in read data from cache.
This commit is contained in:
commit
469f7a4af0
|
@ -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