Merge pull request #26319 from taosdata/fix/check_end_pos
fix(tsdb):check the result of the binary search for the end position
This commit is contained in:
commit
72b892507c
|
@ -927,6 +927,10 @@ static int32_t getEndPosInDataBlock(STsdbReader* pReader, SBlockData* pBlockData
|
|||
} else {
|
||||
int64_t key = asc ? pReader->info.window.ekey : pReader->info.window.skey;
|
||||
endPos = doBinarySearchKey(pBlockData->aTSKEY, pRecord->numRow, pos, key, pReader->info.order);
|
||||
if (endPos == -1) {
|
||||
return endPos;
|
||||
}
|
||||
|
||||
endPos = findFirstPos(pBlockData->aTSKEY, pRecord->numRow, endPos, asc);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue