diff options
| author | chrislu <chris.lu@gmail.com> | 2022-10-10 00:12:10 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-10-10 00:12:10 -0700 |
| commit | 109dc7fdf62ba3c6d1f8aa6ee18cec75505553ee (patch) | |
| tree | 9841955a24ab8f47443d755695ebed2448bc3260 /weed | |
| parent | fc54afdba905537eed85e0433a9cc447018ea631 (diff) | |
| download | seaweedfs-109dc7fdf62ba3c6d1f8aa6ee18cec75505553ee.tar.xz seaweedfs-109dc7fdf62ba3c6d1f8aa6ee18cec75505553ee.zip | |
mount: remove mount directory from generating cache directory id
fix https://github.com/seaweedfs/seaweedfs/discussions/3811
Diffstat (limited to 'weed')
| -rw-r--r-- | weed/mount/weedfs.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
