tsdb/commit2: reset nextKey to max to stop commit
This commit is contained in:
parent
992d623ae5
commit
dd32f12f92
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue