diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-11-08 07:37:34 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-11-08 07:37:34 -0800 |
| commit | cbd94b18a5c86053768e4e20e43131b5ca6d19a5 (patch) | |
| tree | ca7bb8410520fcdb5123d5eb033ebec234cde112 /weed/filesys/wfs.go | |
| parent | 6e119235514b365a5131b3ca4c8222d411167d4d (diff) | |
| download | seaweedfs-cbd94b18a5c86053768e4e20e43131b5ca6d19a5.tar.xz seaweedfs-cbd94b18a5c86053768e4e20e43131b5ca6d19a5.zip | |
improve "ls -al" performance for large directory
Diffstat (limited to 'weed/filesys/wfs.go')
| -rw-r--r-- | weed/filesys/wfs.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go index fc5a9cf93..8103fd570 100644 --- a/weed/filesys/wfs.go +++ b/weed/filesys/wfs.go @@ -1,14 +1,16 @@ package filesys import ( + "fmt" + "sync" + "time" + "bazil.org/fuse" "bazil.org/fuse/fs" - "fmt" "github.com/chrislusf/seaweedfs/weed/glog" "github.com/chrislusf/seaweedfs/weed/pb/filer_pb" "github.com/chrislusf/seaweedfs/weed/util" "github.com/karlseguin/ccache" - "sync" ) type Option struct { @@ -20,6 +22,7 @@ type Option struct { ChunkSizeLimit int64 DataCenter string DirListingLimit int + EntryCacheTtl time.Duration } type WFS struct { |
