fix(tsdb): fix error in block dist.

This commit is contained in:
Haojun Liao 2023-12-04 18:00:41 +08:00
parent 24d9337632
commit 6d82900a32
1 changed files with 11 additions and 10 deletions

View File

@ -4731,6 +4731,8 @@ int32_t tsdbGetFileBlocksDistInfo2(STsdbReader* pReader, STableBlockDistInfo* pT
}
}
SReaderStatus* pStatus = &pReader->status;
if (pStatus->pCurrentFileset != NULL) {
SMergeTreeConf conf = {
.pReader = pReader,
.pSchema = pReader->info.pSchema,
@ -4738,10 +4740,9 @@ int32_t tsdbGetFileBlocksDistInfo2(STsdbReader* pReader, STableBlockDistInfo* pT
.numOfCols = pReader->suppInfo.numOfCols,
.suid = pReader->info.suid,
};
SReaderStatus* pStatus = &pReader->status;
pTableBlockInfo->numOfSttRows +=
tsdbGetRowsInSttFiles(pStatus->pCurrentFileset, pStatus->pLDataIterArray, pReader->pTsdb, &conf, pReader->idStr);
pTableBlockInfo->numOfSttRows += tsdbGetRowsInSttFiles(pStatus->pCurrentFileset, pStatus->pLDataIterArray,
pReader->pTsdb, &conf, pReader->idStr);
}
STsdbCfg* pc = &pReader->pTsdb->pVnode->config.tsdbCfg;
pTableBlockInfo->defMinRows = pc->minRows;