fix(tsdb): calculate the rows in next fileset.
This commit is contained in:
parent
6d82900a32
commit
7145a7b8a1
|
@ -4731,15 +4731,16 @@ int32_t tsdbGetFileBlocksDistInfo2(STsdbReader* pReader, STableBlockDistInfo* pT
|
|||
}
|
||||
}
|
||||
|
||||
SMergeTreeConf conf = {
|
||||
.pReader = pReader,
|
||||
.pSchema = pReader->info.pSchema,
|
||||
.pCols = pReader->suppInfo.colId,
|
||||
.numOfCols = pReader->suppInfo.numOfCols,
|
||||
.suid = pReader->info.suid,
|
||||
};
|
||||
|
||||
SReaderStatus* pStatus = &pReader->status;
|
||||
if (pStatus->pCurrentFileset != NULL) {
|
||||
SMergeTreeConf conf = {
|
||||
.pReader = pReader,
|
||||
.pSchema = pReader->info.pSchema,
|
||||
.pCols = pReader->suppInfo.colId,
|
||||
.numOfCols = pReader->suppInfo.numOfCols,
|
||||
.suid = pReader->info.suid,
|
||||
};
|
||||
pTableBlockInfo->numOfSttRows += tsdbGetRowsInSttFiles(pStatus->pCurrentFileset, pStatus->pLDataIterArray,
|
||||
pReader->pTsdb, &conf, pReader->idStr);
|
||||
}
|
||||
|
@ -4791,6 +4792,12 @@ int32_t tsdbGetFileBlocksDistInfo2(STsdbReader* pReader, STableBlockDistInfo* pT
|
|||
break;
|
||||
}
|
||||
|
||||
// add the data in stt files of new fileset
|
||||
if (pStatus->pCurrentFileset != NULL) {
|
||||
pTableBlockInfo->numOfSttRows += tsdbGetRowsInSttFiles(pStatus->pCurrentFileset, pStatus->pLDataIterArray,
|
||||
pReader->pTsdb, &conf, pReader->idStr);
|
||||
}
|
||||
|
||||
pTableBlockInfo->numOfBlocks += pBlockIter->numOfBlocks;
|
||||
hasNext = (pBlockIter->numOfBlocks > 0);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue