From 0fa9ce71d86f50f64c3cb80052653adb27310ee6 Mon Sep 17 00:00:00 2001 From: Minghao Li Date: Mon, 18 Jul 2022 11:03:03 +0800 Subject: [PATCH] refactor(sync): add index/term in vnodeSnapWriterClose --- source/dnode/vnode/src/vnd/vnodeSnapshot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dnode/vnode/src/vnd/vnodeSnapshot.c b/source/dnode/vnode/src/vnd/vnodeSnapshot.c index c6b423f712..59242cbd8a 100644 --- a/source/dnode/vnode/src/vnd/vnodeSnapshot.c +++ b/source/dnode/vnode/src/vnd/vnodeSnapshot.c @@ -193,8 +193,8 @@ int32_t vnodeSnapWriterClose(SVSnapWriter *pWriter, int8_t rollback, SSnapshot * pVnode->state.committed = pWriter->ever; pVnode->state.applied = pWriter->ever; - // pVnode->state.applyTerm = ; - // pVnode->state.commitTerm = ; + pVnode->state.applyTerm = pSnapshot->lastApplyTerm; + pVnode->state.commitTerm = pSnapshot->lastApplyTerm; info.config = pVnode->config; info.state.committed = pVnode->state.applied; -- GitLab