Merge pull request #15037 from taosdata/feature/3.0_mhli

refactor(sync): add index/term in vnodeSnapWriterClose
This commit is contained in:
Li Minghao 2022-07-18 11:30:14 +08:00 committed by GitHub
commit 2569a1def9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;