fix(tsdb): fix invalid read.

This commit is contained in:
Haojun Liao 2023-11-15 11:13:06 +08:00
parent b390ee859c
commit f1b1b8911b
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