fix(query): getFileBlockDistInfo totalSize set
This commit is contained in:
parent
78ab23aad8
commit
ebf35651f3
|
@ -4349,6 +4349,10 @@ 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;
|
||||
}
|
||||
|
||||
int32_t bucketIndex = getBucketIndex(pTableBlockInfo->defMinRows, bucketRange, numOfRows);
|
||||
pTableBlockInfo->blockRowsHisto[bucketIndex]++;
|
||||
|
||||
|
|
Loading…
Reference in New Issue