fix(tsdb): add null check.
This commit is contained in:
parent
67d967e22f
commit
da636ab527
|
@ -862,16 +862,20 @@ static bool overlapWithTimeWindow(STimeWindow* p1, STimeWindow* pQueryWindow, ST
|
||||||
SIterInfo* pIMemIter = &pBlockScanInfo->iiter;
|
SIterInfo* pIMemIter = &pBlockScanInfo->iiter;
|
||||||
|
|
||||||
// overlap with mem data
|
// overlap with mem data
|
||||||
|
if (pMemIter->hasVal) {
|
||||||
STbData* pTbData = pMemIter->iter->pTbData;
|
STbData* pTbData = pMemIter->iter->pTbData;
|
||||||
if ((pMemIter->hasVal) && overlapHelper(p1, pTbData->minKey, pTbData->maxKey)) {
|
if (overlapHelper(p1, pTbData->minKey, pTbData->maxKey)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// overlap with imem data
|
// overlap with imem data
|
||||||
|
if (pIMemIter->hasVal) {
|
||||||
STbData* pITbData = pIMemIter->iter->pTbData;
|
STbData* pITbData = pIMemIter->iter->pTbData;
|
||||||
if ((pIMemIter->hasVal) && overlapHelper(p1, pITbData->minKey, pITbData->maxKey)) {
|
if (overlapHelper(p1, pITbData->minKey, pITbData->maxKey)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// overlap with data file block
|
// overlap with data file block
|
||||||
STimeWindow* pFileWin = &pBlockScanInfo->filesetWindow;
|
STimeWindow* pFileWin = &pBlockScanInfo->filesetWindow;
|
||||||
|
|
Loading…
Reference in New Issue