more refact meta

This commit is contained in:
Hongze Cheng 2022-04-24 07:36:26 +00:00
parent 7516ecae42
commit d08e55762f
2 changed files with 2 additions and 2 deletions

View File

@ -198,7 +198,7 @@ int vnodeCommit(SVnode *pVnode) {
// save info // save info
info.config = pVnode->config; 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); snprintf(dir, TSDB_FILENAME_LEN, "%s%s%s", tfsGetPrimaryPath(pVnode->pTfs), TD_DIRSEP, pVnode->path);
if (vnodeSaveInfo(dir, &info) < 0) { if (vnodeSaveInfo(dir, &info) < 0) {
ASSERT(0); ASSERT(0);

View File

@ -144,7 +144,7 @@ _err:
void vnodeClose(SVnode *pVnode) { void vnodeClose(SVnode *pVnode) {
if (pVnode) { if (pVnode) {
// commit (TODO: use option to control) // commit (TODO: use option to control)
vnodeSyncCommit(pVnode); vnodeCommit(pVnode);
// close vnode // close vnode
vnodeQueryClose(pVnode); vnodeQueryClose(pVnode);
walClose(pVnode->pWal); walClose(pVnode->pWal);