Merge pull request #15037 from taosdata/feature/3.0_mhli
refactor(sync): add index/term in vnodeSnapWriterClose
This commit is contained in:
commit
2569a1def9
|
@ -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