Merge pull request #27356 from taosdata/fix/TD-31583-3.0
fix(tfs): multi-level storage
This commit is contained in:
commit
80104596a1
|
@ -554,7 +554,7 @@ static int32_t tfsCheckAndFormatCfg(STfs *pTfs, SDiskCfg *pCfg) {
|
||||||
}
|
}
|
||||||
|
|
||||||
STfsDisk *pDisk = NULL;
|
STfsDisk *pDisk = NULL;
|
||||||
if ((code = tfsGetDiskByName(pTfs, dirName, NULL)) != 0) {
|
if ((code = tfsGetDiskByName(pTfs, dirName, &pDisk)) != 0) {
|
||||||
fError("failed to mount %s to FS since %s", pCfg->dir, tstrerror(code));
|
fError("failed to mount %s to FS since %s", pCfg->dir, tstrerror(code));
|
||||||
TAOS_RETURN(code);
|
TAOS_RETURN(code);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue