diff options
| author | chrislu <chris.lu@gmail.com> | 2022-10-14 22:24:14 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-10-14 22:24:14 -0700 |
| commit | 5c2eb602c97a372ec76a609ad90692ab6649efca (patch) | |
| tree | 282b1dc87649d508eca63c07c1d7fad7c28eb484 | |
| parent | 2f72103c831f8a5227613436ed87f9464825f995 (diff) | |
| download | seaweedfs-5c2eb602c97a372ec76a609ad90692ab6649efca.tar.xz seaweedfs-5c2eb602c97a372ec76a609ad90692ab6649efca.zip | |
Revert "mount: remove mount directory from generating cache directory id"
This reverts commit 109dc7fdf62ba3c6d1f8aa6ee18cec75505553ee.
| -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 0198de02d..7cff71c52 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(string(option.FilerAddresses[0]) + option.FilerMountRootPath + util.Version()))[0:8] + cacheUniqueId := util.Md5String([]byte(option.MountDirectory + 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) |
