enh: initialize commitMs as the time when vnodeOpen

This commit is contained in:
Benguang Zhao 2022-12-27 10:38:56 +08:00
parent 137e7d009d
commit c1c7f2593f
1 changed files with 1 additions and 0 deletions

View File

@ -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;