提交 8dfbcc5a 编写于 作者: A Alex Duan

fix(query): getFileBlockDistInfo totalSize set use index 0

上级 ebf35651
......@@ -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]++;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册