fix snapshot version

This commit is contained in:
Hongze Cheng 2022-05-21 03:13:58 +00:00
parent 1987a0f91c
commit 51f0687645
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ SVnode *vnodeOpen(const char *path, STfs *pTfs, SMsgCb msgCb) {
pVnode->path = (char *)&pVnode[1];
strcpy(pVnode->path, path);
pVnode->config = info.config;
pVnode->state = info.state;
pVnode->state.committed = info.state.committed;
pVnode->state.applied = info.state.committed;
pVnode->pTfs = pTfs;
pVnode->msgCb = msgCb;