fix(tsdb): fix invalid read.
This commit is contained in:
parent
4af844ee61
commit
62c7877176
|
@ -572,8 +572,13 @@ static int32_t doLoadFileBlock(STsdbReader* pReader, SArray* pIndexList, SBlockN
|
||||||
|
|
||||||
if (isEmptyQueryTimeWindow(&w)) {
|
if (isEmptyQueryTimeWindow(&w)) {
|
||||||
k += 1;
|
k += 1;
|
||||||
|
|
||||||
|
if (k >= numOfTables) {
|
||||||
|
break;
|
||||||
|
} else {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 1. time range check
|
// 1. time range check
|
||||||
if (pRecord->firstKey > w.ekey || pRecord->lastKey < w.skey) {
|
if (pRecord->firstKey > w.ekey || pRecord->lastKey < w.skey) {
|
||||||
|
|
Loading…
Reference in New Issue