tsdb/commit2: reset nextKey to max to stop commit

This commit is contained in:
Minglei Jin 2023-07-27 09:50:32 +08:00
parent 992d623ae5
commit dd32f12f92
1 changed files with 2 additions and 0 deletions

View File

@ -164,6 +164,8 @@ static int32_t tsdbCommitTombData(SCommitter2 *committer) {
if (committer->ctx->fset == NULL && !committer->ctx->hasTSData) { if (committer->ctx->fset == NULL && !committer->ctx->hasTSData) {
if (committer->ctx->maxKey < committer->ctx->maxDelKey) { if (committer->ctx->maxKey < committer->ctx->maxDelKey) {
committer->ctx->nextKey = committer->ctx->maxKey + 1; committer->ctx->nextKey = committer->ctx->maxKey + 1;
} else {
committer->ctx->nextKey = TSKEY_MAX;
} }
return 0; return 0;
} }