refactor(sync): add index/term in vnodeSnapWriterClose
This commit is contained in:
parent
046e784c8c
commit
0fa9ce71d8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue