mount: directory listing cache ttl set to 5 minutes

This commit is contained in:
Chris Lu 2019-12-13 10:08:27 -08:00
parent 05c3b795dc
commit 3e0cd122d8

View File

@ -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 {