diff --git a/src/vnode/src/vnodeMain.c b/src/vnode/src/vnodeMain.c index 201fed13f838e8fdf04f11a5edf8363630557842..66760dbfb779fa271755479aaa768da419ab063e 100644 --- a/src/vnode/src/vnodeMain.c +++ b/src/vnode/src/vnodeMain.c @@ -111,7 +111,7 @@ int32_t vnodeCreate(SCreateVnodeMsg *pVnodeCfg) { sprintf(rootDir, "%s/vnode%d", tsVnodeDir, pVnodeCfg->cfg.vgId); char vnodeDir[TSDB_FILENAME_LEN] = "\0"; - snprintf(vnodeDir, TSDB_FILENAME_LEN, "vnode%d", pVnodeCfg->cfg.vgId); + snprintf(vnodeDir, TSDB_FILENAME_LEN, "/vnode/vnode%d", pVnodeCfg->cfg.vgId); if (tfsMkdir(vnodeDir) < 0) { vError("vgId:%d, failed to create vnode dir %s, reason:%s", pVnodeCfg->cfg.vgId, vnodeDir, strerror(errno)); return terrno;