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