From 109dc7fdf62ba3c6d1f8aa6ee18cec75505553ee Mon Sep 17 00:00:00 2001 From: chrislu Date: Mon, 10 Oct 2022 00:12:10 -0700 Subject: [PATCH] mount: remove mount directory from generating cache directory id fix https://github.com/seaweedfs/seaweedfs/discussions/3811 --- weed/mount/weedfs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/mount/weedfs.go b/weed/mount/weedfs.go index 7cff71c52..0198de02d 100644 --- a/weed/mount/weedfs.go +++ b/weed/mount/weedfs.go @@ -190,7 +190,7 @@ func (wfs *WFS) getCurrentFiler() pb.ServerAddress { } func (option *Option) setupUniqueCacheDirectory() { - cacheUniqueId := util.Md5String([]byte(option.MountDirectory + string(option.FilerAddresses[0]) + option.FilerMountRootPath + util.Version()))[0:8] + cacheUniqueId := util.Md5String([]byte(string(option.FilerAddresses[0]) + option.FilerMountRootPath + util.Version()))[0:8] option.uniqueCacheDir = path.Join(option.CacheDir, cacheUniqueId) option.uniqueCacheTempPageDir = filepath.Join(option.uniqueCacheDir, "swap") os.MkdirAll(option.uniqueCacheTempPageDir, os.FileMode(0777)&^option.Umask)