fix: set wal apply version on vnode reopen

This commit is contained in:
Shengliang Guan 2022-09-26 20:32:02 +08:00
parent dafde51767
commit 1e5dc921e0
2 changed files with 2 additions and 1 deletions

View File

@ -122,7 +122,6 @@ static void *mndThreadFp(void *param) {
if (lastTime % 10 != 0) continue;
int64_t sec = lastTime / 10;
if (sec % tsTtlPushInterval == 0) {
mndPullupTtl(pMnode);
}

View File

@ -688,6 +688,8 @@ static void vnodeRestoreFinish(struct SSyncFSM *pFsm) {
}
} while (true);
walApplyVer(pVnode->pWal, pVnode->state.applied);
pVnode->restored = true;
vDebug("vgId:%d, sync restore finished", pVnode->config.vgId);
}