more code
This commit is contained in:
parent
5e579398e8
commit
c6a71a4b66
|
@ -867,6 +867,7 @@ static int32_t tsdbCompactFileSet(STsdbCompactor *pCompactor) {
|
|||
|
||||
code = tBlockDataInit(&pCompactor->bData, (TABLEID *)pRowInfo, pTSchema, NULL, 0);
|
||||
TSDB_CHECK_CODE(code, lino, _exit);
|
||||
|
||||
pCompactor->tableId.suid = pRowInfo->suid;
|
||||
pCompactor->tableId.uid = pRowInfo->uid;
|
||||
}
|
||||
|
@ -891,10 +892,11 @@ static int32_t tsdbCompactFileSet(STsdbCompactor *pCompactor) {
|
|||
// init block data if need
|
||||
if (init && (code = tBlockDataInit(&pCompactor->bData, (TABLEID *)pRowInfo, pTSchema, NULL, 0))) {
|
||||
TSDB_CHECK_CODE(code, lino, _exit);
|
||||
}
|
||||
|
||||
pCompactor->tableId.suid = pRowInfo->suid;
|
||||
pCompactor->tableId.uid = pRowInfo->uid;
|
||||
}
|
||||
}
|
||||
|
||||
// if append/merge the row causes nRow exceed maxRows
|
||||
if (tBlockDataTryUpsertRow(&pCompactor->bData, &pRowInfo->row, pRowInfo->uid) > pCompactor->maxRows) {
|
||||
|
@ -903,8 +905,6 @@ static int32_t tsdbCompactFileSet(STsdbCompactor *pCompactor) {
|
|||
}
|
||||
|
||||
// append/merge the row
|
||||
pCompactor->tableId.suid = pRowInfo->suid;
|
||||
pCompactor->tableId.uid = pRowInfo->uid;
|
||||
code = tBlockDataUpsertRow(&pCompactor->bData, &pRowInfo->row, pTSchema, pRowInfo->uid);
|
||||
TSDB_CHECK_CODE(code, lino, _exit);
|
||||
|
||||
|
|
Loading…
Reference in New Issue