more refact meta
This commit is contained in:
parent
7516ecae42
commit
d08e55762f
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue