diff --git a/source/dnode/vnode/src/tsdb/tsdbCommit.c b/source/dnode/vnode/src/tsdb/tsdbCommit.c index 49847bb780251b5323b25932ec89bc8de8c0cab0..fcb58e91b35e3b9601427033280819153b83c6ed 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;