aboutsummaryrefslogtreecommitdiff
path: root/weed/mount/weedfs.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2025-06-03 22:46:07 -0700
committerchrislu <chris.lu@gmail.com>2025-06-03 22:46:10 -0700
commitbd4891a11787dc8ef93c4cc829eb907ac296db68 (patch)
tree435c60304e18be9c02936db7a71d0008d1d2b94c /weed/mount/weedfs.go
parent7039d5003ce41067f1e7b5ee9d2ad9378f54aeea (diff)
downloadseaweedfs-bd4891a11787dc8ef93c4cc829eb907ac296db68.tar.xz
seaweedfs-bd4891a11787dc8ef93c4cc829eb907ac296db68.zip
change version directory
Diffstat (limited to 'weed/mount/weedfs.go')
-rw-r--r--weed/mount/weedfs.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/mount/weedfs.go b/weed/mount/weedfs.go
index 97e9ca30c..2127e4a2b 100644
--- a/weed/mount/weedfs.go
+++ b/weed/mount/weedfs.go
@@ -3,6 +3,7 @@ package mount
import (
"context"
"errors"
+ "github.com/seaweedfs/seaweedfs/weed/util/version"
"math/rand"
"os"
"path"
@@ -231,7 +232,7 @@ func (wfs *WFS) ClearCacheDir() {
}
func (option *Option) setupUniqueCacheDirectory() {
- cacheUniqueId := util.Md5String([]byte(option.MountDirectory + string(option.FilerAddresses[0]) + option.FilerMountRootPath + util.Version()))[0:8]
+ cacheUniqueId := util.Md5String([]byte(option.MountDirectory + string(option.FilerAddresses[0]) + option.FilerMountRootPath + version.Version()))[0:8]
option.uniqueCacheDirForRead = path.Join(option.CacheDirForRead, cacheUniqueId)
os.MkdirAll(option.uniqueCacheDirForRead, os.FileMode(0777)&^option.Umask)
option.uniqueCacheDirForWrite = filepath.Join(path.Join(option.CacheDirForWrite, cacheUniqueId), "swap")