aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-02-16 00:37:24 -0800
committerchrislu <chris.lu@gmail.com>2022-02-16 00:37:24 -0800
commit1560ec7e26abdb04fbf4c3509244e2636fe018ab (patch)
tree6375d505fbaaaa603558e3a22313cef6d47f91f8 /weed/filesys
parent3cbce878f2c658c197c15eb36c63551ec1da2b44 (diff)
downloadseaweedfs-1560ec7e26abdb04fbf4c3509244e2636fe018ab.tar.xz
seaweedfs-1560ec7e26abdb04fbf4c3509244e2636fe018ab.zip
remove unused code
Diffstat (limited to 'weed/filesys')
-rw-r--r--weed/filesys/wfs.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go
index 54eb9064b..7ee9a10ea 100644
--- a/weed/filesys/wfs.go
+++ b/weed/filesys/wfs.go
@@ -8,7 +8,6 @@ import (
"math/rand"
"os"
"path"
- "path/filepath"
"sync"
"time"
@@ -58,8 +57,7 @@ type Option struct {
Cipher bool // whether encrypt data on volume server
UidGidMapper *meta_cache.UidGidMapper
- uniqueCacheDir string
- uniqueCacheTempPageDir string
+ uniqueCacheDir string
}
var _ = fs.FS(&WFS{})
@@ -303,13 +301,8 @@ 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]
option.uniqueCacheDir = path.Join(option.CacheDir, cacheUniqueId)
- option.uniqueCacheTempPageDir = filepath.Join(option.uniqueCacheDir, "sw")
- os.MkdirAll(option.uniqueCacheTempPageDir, os.FileMode(0777)&^option.Umask)
}
-func (option *Option) getTempFilePageDir() string {
- return option.uniqueCacheTempPageDir
-}
func (option *Option) getUniqueCacheDir() string {
return option.uniqueCacheDir
}