diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-01-03 22:21:39 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-01-03 22:21:39 -0800 |
| commit | aac11fb832627cbf73a3a7448ec13467ebcc6211 (patch) | |
| tree | 9d2d453de9fc65906071040abb262f1af9a8d9c2 /weed/filesys/dir.go | |
| parent | 7f74577db10bcb9e06b6963272316b0f901999d6 (diff) | |
| download | seaweedfs-aac11fb832627cbf73a3a7448ec13467ebcc6211.tar.xz seaweedfs-aac11fb832627cbf73a3a7448ec13467ebcc6211.zip | |
reduce directory list cache usage
Diffstat (limited to 'weed/filesys/dir.go')
| -rw-r--r-- | weed/filesys/dir.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go index 821bcfb9f..f8b9a049c 100644 --- a/weed/filesys/dir.go +++ b/weed/filesys/dir.go @@ -77,7 +77,7 @@ func (dir *Dir) Attr(context context.Context, attr *fuse.Attr) error { dir.attributes = resp.Entry.Attributes } - dir.wfs.listDirectoryEntriesCache.Set(dir.Path, resp.Entry, dir.wfs.option.EntryCacheTtl) + // dir.wfs.listDirectoryEntriesCache.Set(dir.Path, resp.Entry, dir.wfs.option.EntryCacheTtl) return nil }) @@ -215,7 +215,7 @@ func (dir *Dir) Lookup(ctx context.Context, req *fuse.LookupRequest, resp *fuse. entry = resp.Entry - dir.wfs.listDirectoryEntriesCache.Set(path.Join(dir.Path, entry.Name), entry, dir.wfs.option.EntryCacheTtl) + // dir.wfs.listDirectoryEntriesCache.Set(path.Join(dir.Path, entry.Name), entry, dir.wfs.option.EntryCacheTtl) return nil }) |
