diff options
| author | hilimd <68371223+hilimd@users.noreply.github.com> | 2020-09-23 17:32:05 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-23 17:32:05 +0800 |
| commit | 0db149fb5f73694866c5f09d29f4ffae8bacad51 (patch) | |
| tree | 37bb9cee8e6d2ded3c6e79e7719efca5ea52be28 /weed/filesys/wfs.go | |
| parent | d506080c36297f5b9320a292e5f9e0896bd3bccb (diff) | |
| parent | f7a0ccb595edb51498aeb61aa0e09ac93228b007 (diff) | |
| download | seaweedfs-0db149fb5f73694866c5f09d29f4ffae8bacad51.tar.xz seaweedfs-0db149fb5f73694866c5f09d29f4ffae8bacad51.zip | |
Merge pull request #18 from chrislusf/master
sync
Diffstat (limited to 'weed/filesys/wfs.go')
| -rw-r--r-- | weed/filesys/wfs.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go index 8d46e0862..0335d5d98 100644 --- a/weed/filesys/wfs.go +++ b/weed/filesys/wfs.go @@ -88,7 +88,7 @@ func NewSeaweedFileSystem(option *Option) *WFS { cacheUniqueId := util.Md5String([]byte(option.FilerGrpcAddress + option.FilerMountRootPath + util.Version()))[0:4] cacheDir := path.Join(option.CacheDir, cacheUniqueId) if option.CacheSizeMB > 0 { - os.MkdirAll(cacheDir, 0755) + os.MkdirAll(cacheDir, os.FileMode(0777) &^ option.Umask) wfs.chunkCache = chunk_cache.NewTieredChunkCache(256, cacheDir, option.CacheSizeMB) } |
