Merge pull request #1970 from taosdata/feature/query

[td-225] fix bugs in read data from cache.
This commit is contained in:
Shengliang Guan 2020-05-20 15:10:11 +08:00 committed by GitHub
commit 469f7a4af0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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; break;
} }