From d08e55762f06ed0016f6abb439674ba908edfed4 Mon Sep 17 00:00:00 2001 From: Hongze Cheng Date: Sun, 24 Apr 2022 07:36:26 +0000 Subject: [PATCH] more refact meta --- source/dnode/vnode/src/vnd/vnodeCommit.c | 2 +- source/dnode/vnode/src/vnd/vnodeOpen.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dnode/vnode/src/vnd/vnodeCommit.c b/source/dnode/vnode/src/vnd/vnodeCommit.c index b8d2f3001d..9b2909aa09 100644 --- a/source/dnode/vnode/src/vnd/vnodeCommit.c +++ b/source/dnode/vnode/src/vnd/vnodeCommit.c @@ -198,7 +198,7 @@ int vnodeCommit(SVnode *pVnode) { // save info info.config = pVnode->config; - info.state = pVnode->state; + info.state.committed = pVnode->state.processed; snprintf(dir, TSDB_FILENAME_LEN, "%s%s%s", tfsGetPrimaryPath(pVnode->pTfs), TD_DIRSEP, pVnode->path); if (vnodeSaveInfo(dir, &info) < 0) { ASSERT(0); diff --git a/source/dnode/vnode/src/vnd/vnodeOpen.c b/source/dnode/vnode/src/vnd/vnodeOpen.c index 7dfab5edca..b51f0283b5 100644 --- a/source/dnode/vnode/src/vnd/vnodeOpen.c +++ b/source/dnode/vnode/src/vnd/vnodeOpen.c @@ -144,7 +144,7 @@ _err: void vnodeClose(SVnode *pVnode) { if (pVnode) { // commit (TODO: use option to control) - vnodeSyncCommit(pVnode); + vnodeCommit(pVnode); // close vnode vnodeQueryClose(pVnode); walClose(pVnode->pWal); -- GitLab