fix(query): update remove check condition.

This commit is contained in:
Haojun Liao 2022-09-23 14:34:40 +08:00
parent 4935b8f391
commit be3459d882
1 changed files with 6 additions and 6 deletions

View File

@ -1287,14 +1287,14 @@ static bool doCheckforDatablockOverlap(STableBlockScanInfo* pBlockScanInfo, cons
if (p->version >= pBlock->minVer) { if (p->version >= pBlock->minVer) {
if (i < num - 1) { if (i < num - 1) {
TSDBKEY* pnext = taosArrayGet(pBlockScanInfo->delSkyline, i + 1); TSDBKEY* pnext = taosArrayGet(pBlockScanInfo->delSkyline, i + 1);
if (i + 1 == num - 1) { // pnext is the last point // if (i + 1 == num - 1) { // pnext is the last point
if (pnext->ts >= pBlock->minKey.ts) { if (pnext->ts >= pBlock->minKey.ts) {
return true; return true;
} // }
} else { // } else {
if (pnext->ts >= pBlock->minKey.ts) { // if (pnext->ts >= pBlock->minKey.ts) {
return true; // return true;
} // }
} }
} else { // it must be the last point } else { // it must be the last point
ASSERT(p->version == 0); ASSERT(p->version == 0);