refactor(sync): add index/term in vnodeSnapWriterClose

This commit is contained in:
Minghao Li 2022-07-18 11:03:03 +08:00
parent 046e784c8c
commit 0fa9ce71d8
1 changed files with 2 additions and 2 deletions

View File

@ -193,8 +193,8 @@ int32_t vnodeSnapWriterClose(SVSnapWriter *pWriter, int8_t rollback, SSnapshot *
pVnode->state.committed = pWriter->ever; pVnode->state.committed = pWriter->ever;
pVnode->state.applied = pWriter->ever; pVnode->state.applied = pWriter->ever;
// pVnode->state.applyTerm = ; pVnode->state.applyTerm = pSnapshot->lastApplyTerm;
// pVnode->state.commitTerm = ; pVnode->state.commitTerm = pSnapshot->lastApplyTerm;
info.config = pVnode->config; info.config = pVnode->config;
info.state.committed = pVnode->state.applied; info.state.committed = pVnode->state.applied;