From fb860726dec453aeb7d70b1ac5af38e79c09a512 Mon Sep 17 00:00:00 2001 From: Minglei Jin Date: Wed, 26 Jul 2023 08:40:44 +0800 Subject: [PATCH] fix(tsdb/del): reset next key to del record's ekey --- source/dnode/vnode/src/tsdb/tsdbCommit2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/dnode/vnode/src/tsdb/tsdbCommit2.c b/source/dnode/vnode/src/tsdb/tsdbCommit2.c index 98cd48c622..ed05d7a6ca 100644 --- a/source/dnode/vnode/src/tsdb/tsdbCommit2.c +++ b/source/dnode/vnode/src/tsdb/tsdbCommit2.c @@ -190,7 +190,7 @@ static int32_t tsdbCommitTombData(SCommitter2 *committer) { } if (record->ekey > committer->ctx->maxKey) { - committer->ctx->nextKey = committer->ctx->maxKey; + committer->ctx->nextKey = record->ekey; } record->skey = TMAX(record->skey, committer->ctx->minKey);