enh: initialize commitMs as the time when vnodeOpen
This commit is contained in:
parent
137e7d009d
commit
c1c7f2593f
|
@ -142,6 +142,7 @@ SVnode *vnodeOpen(const char *path, STfs *pTfs, SMsgCb msgCb) {
|
|||
pVnode->path = (char *)&pVnode[1];
|
||||
strcpy(pVnode->path, path);
|
||||
pVnode->config = info.config;
|
||||
pVnode->commitMs = taosGetMonoTimestampMs();
|
||||
pVnode->state.committed = info.state.committed;
|
||||
pVnode->state.commitTerm = info.state.commitTerm;
|
||||
pVnode->state.commitID = info.state.commitID;
|
||||
|
|
Loading…
Reference in New Issue