mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
mount: directory listing cache ttl set to 5 minutes
This commit is contained in:
parent
05c3b795dc
commit
3e0cd122d8
|
@ -227,7 +227,7 @@ func (dir *Dir) ReadDirAll(ctx context.Context) (ret []fuse.Dirent, err error) {
|
||||||
|
|
||||||
glog.V(3).Infof("dir ReadDirAll %s", dir.Path)
|
glog.V(3).Infof("dir ReadDirAll %s", dir.Path)
|
||||||
|
|
||||||
cacheTtl := 10 * time.Minute
|
cacheTtl := 5 * time.Minute
|
||||||
|
|
||||||
readErr := filer2.ReadDirAllEntries(ctx, dir.wfs, dir.Path, "", func(entry *filer_pb.Entry, isLast bool) {
|
readErr := filer2.ReadDirAllEntries(ctx, dir.wfs, dir.Path, "", func(entry *filer_pb.Entry, isLast bool) {
|
||||||
if entry.IsDirectory {
|
if entry.IsDirectory {
|
||||||
|
|
Loading…
Reference in a new issue