Merge pull request #23703 from taosdata/fix/drop_stream

fix(tsdb): fix invalid read.
This commit is contained in:
Haojun Liao 2023-11-15 13:35:46 +08:00 committed by GitHub
commit 86f2673849
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -572,7 +572,12 @@ static int32_t doLoadFileBlock(STsdbReader* pReader, SArray* pIndexList, SBlockN
if (isEmptyQueryTimeWindow(&w)) {
k += 1;
continue;
if (k >= numOfTables) {
break;
} else {
continue;
}
}
// 1. time range check