enh: prepare vnode dir again in vnodeOpen

This commit is contained in:
Benguang Zhao 2023-10-08 18:28:47 +08:00
parent 05ba5e1ed0
commit 094cf408df
1 changed files with 4 additions and 0 deletions

View File

@ -345,6 +345,10 @@ SVnode *vnodeOpen(const char *path, int32_t diskPrimary, STfs *pTfs, SMsgCb msgC
return NULL;
}
if (vnodeMkDir(pTfs, path)) {
vError("vgId:%d, failed to prepare vnode dir since %s, path: %s", info.config.vgId, strerror(errno), path);
return NULL;
}
// save vnode info on dnode ep changed
bool updated = false;
SSyncCfg *pCfg = &info.config.syncCfg;