reduce directory list cache usage

This commit is contained in:
Chris Lu
2019-01-03 22:21:39 -08:00
parent 7f74577db1
commit aac11fb832
3 changed files with 4 additions and 4 deletions

View File

@@ -161,7 +161,7 @@ func (file *File) maybeLoadAttributes(ctx context.Context) error {
glog.V(3).Infof("file attr %v %+v: %d", file.fullpath(), file.entry.Attributes, filer2.TotalSize(file.entry.Chunks))
file.wfs.listDirectoryEntriesCache.Set(file.fullpath(), file.entry, file.wfs.option.EntryCacheTtl)
// file.wfs.listDirectoryEntriesCache.Set(file.fullpath(), file.entry, file.wfs.option.EntryCacheTtl)
return nil
})