From dd32f12f92b9d232e3de1361f36ed370e1144f37 Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Thu, 27 Jul 2023 09:50:32 +0800 Subject: [PATCH] tsdb/commit2: reset nextKey to max to stop commit --- source/dnode/vnode/src/tsdb/tsdbCommit2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/dnode/vnode/src/tsdb/tsdbCommit2.c b/source/dnode/vnode/src/tsdb/tsdbCommit2.c index 49e25f5fbb..1bdbe54231 100644 --- a/source/dnode/vnode/src/tsdb/tsdbCommit2.c +++ b/source/dnode/vnode/src/tsdb/tsdbCommit2.c @@ -164,6 +164,8 @@ static int32_t tsdbCommitTombData(SCommitter2 *committer) { if (committer->ctx->fset == NULL && !committer->ctx->hasTSData) { if (committer->ctx->maxKey < committer->ctx->maxDelKey) { committer->ctx->nextKey = committer->ctx->maxKey + 1; + } else { + committer->ctx->nextKey = TSKEY_MAX; } return 0; }