diff --git a/source/dnode/vnode/src/tsdb/tsdbCommit.c b/source/dnode/vnode/src/tsdb/tsdbCommit.c index 49847bb780..fcb58e91b3 100644 --- a/source/dnode/vnode/src/tsdb/tsdbCommit.c +++ b/source/dnode/vnode/src/tsdb/tsdbCommit.c @@ -459,9 +459,9 @@ static int32_t tsdbOpenCommitIter(SCommitter *pCommitter) { } if (iIter > 0) { - pCommitter->toLastOnly = 1; - } else { pCommitter->toLastOnly = 0; + } else { + pCommitter->toLastOnly = 1; } } else { pCommitter->toLastOnly = 0;