fix(tsdb/del): continue committing fileset if more del left

This commit is contained in:
Minglei Jin 2023-07-25 16:42:45 +08:00
parent 1bce96ea27
commit 7bfb4e0f88
1 changed files with 5 additions and 1 deletions

View File

@ -189,6 +189,10 @@ static int32_t tsdbCommitTombData(SCommitter2 *committer) {
committer->ctx->maxKey = committer->ctx->maxKey + 1; committer->ctx->maxKey = committer->ctx->maxKey + 1;
} }
if (record->ekey > committer->ctx->maxKey) {
committer->ctx->nextKey = committer->ctx->maxKey;
}
record->skey = TMAX(record->skey, committer->ctx->minKey); record->skey = TMAX(record->skey, committer->ctx->minKey);
record->ekey = TMIN(record->ekey, committer->ctx->maxKey); record->ekey = TMIN(record->ekey, committer->ctx->maxKey);
@ -602,4 +606,4 @@ _exit:
tsdbInfo("vgId:%d %s done", TD_VID(pTsdb->pVnode), __func__); tsdbInfo("vgId:%d %s done", TD_VID(pTsdb->pVnode), __func__);
} }
return code; return code;
} }