Merge pull request #27356 from taosdata/fix/TD-31583-3.0

fix(tfs): multi-level storage
This commit is contained in:
Hongze Cheng 2024-08-21 17:49:13 +08:00 committed by GitHub
commit 80104596a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -554,7 +554,7 @@ static int32_t tfsCheckAndFormatCfg(STfs *pTfs, SDiskCfg *pCfg) {
}
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));
TAOS_RETURN(code);
}