Skip to content

Commit

Permalink
fix tsdbread ignored some blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjiaming0909 committed Oct 22, 2024
1 parent 2779690 commit 68f7b41
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions source/dnode/vnode/src/tsdb/tsdbRead2.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,18 +685,6 @@ static int32_t doLoadBlockIndex(STsdbReader* pReader, SDataFileReader* pFileRead
i += 1;
continue;
}
if (pBrinBlk->maxTbid.suid == pReader->info.suid) {
while (j < numOfTables && pList->tableUidList[j] < pBrinBlk->maxTbid.uid) {
j++;
}
if (j >= numOfTables) {
break;
}
if (pBrinBlk->maxTbid.uid < pList->tableUidList[j]) {
i += 1;
continue;
}
}
if (pBrinBlk->minTbid.suid == pReader->info.suid && pBrinBlk->minTbid.uid > pList->tableUidList[numOfTables - 1]) {
break;
}
Expand All @@ -707,6 +695,14 @@ static int32_t doLoadBlockIndex(STsdbReader* pReader, SDataFileReader* pFileRead
}

i += 1;
if (pBrinBlk->maxTbid.suid == pReader->info.suid) {
while (j < numOfTables && pList->tableUidList[j] < pBrinBlk->maxTbid.uid) {
j++;
}
if (j >= numOfTables) {
break;
}
}
}

int64_t et2 = taosGetTimestampUs();
Expand Down

0 comments on commit 68f7b41

Please sign in to comment.