fix(query): getFileBlockDistInfo totalSize set use index 0

This commit is contained in:
Alex Duan 2022-12-21 17:19:00 +08:00
parent ebf35651f3
commit 8dfbcc5a83
1 changed files with 1 additions and 3 deletions

View File

@ -4349,9 +4349,7 @@ int32_t tsdbGetFileBlocksDistInfo(STsdbReader* pReader, STableBlockDistInfo* pTa
pTableBlockInfo->numOfSmallBlocks += 1;
}
for (int32_t i = 0; i < pBlock->nSubBlock; i++) {
pTableBlockInfo->totalSize += pBlock->aSubBlock[i].szBlock;
}
pTableBlockInfo->totalSize = pBlock->aSubBlock[0].szBlock;
int32_t bucketIndex = getBucketIndex(pTableBlockInfo->defMinRows, bucketRange, numOfRows);
pTableBlockInfo->blockRowsHisto[bucketIndex]++;