diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-04-29 17:40:08 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-04-29 17:40:08 -0700 |
| commit | 9e72e9e4b8d58e0f6f99088f0e449d1c9c55e562 (patch) | |
| tree | 4b3b24e0bc17b9597010ce18892a5cb8264476d7 /weed/filesys | |
| parent | ed3cf811f576e2dd9fd1c1fb0df967d7fb9e6f1c (diff) | |
| download | seaweedfs-9e72e9e4b8d58e0f6f99088f0e449d1c9c55e562.tar.xz seaweedfs-9e72e9e4b8d58e0f6f99088f0e449d1c9c55e562.zip | |
able to subscribe any topic from any point of time
Diffstat (limited to 'weed/filesys')
| -rw-r--r-- | weed/filesys/dir.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go index b91aa3a72..c3dab919c 100644 --- a/weed/filesys/dir.go +++ b/weed/filesys/dir.go @@ -263,7 +263,7 @@ func (dir *Dir) ReadDirAll(ctx context.Context) (ret []fuse.Dirent, err error) { glog.V(3).Infof("dir ReadDirAll %s", dir.FullPath()) cacheTtl := 5 * time.Minute - processEachEntryFn := func(entry *filer_pb.Entry, isLast bool) { + processEachEntryFn := func(entry *filer_pb.Entry, isLast bool) error { fullpath := util.NewFullPath(dir.FullPath(), entry.Name) inode := fullpath.AsInode() if entry.IsDirectory { @@ -274,6 +274,7 @@ func (dir *Dir) ReadDirAll(ctx context.Context) (ret []fuse.Dirent, err error) { ret = append(ret, dirent) } dir.wfs.cacheSet(fullpath, entry, cacheTtl) + return nil } if dir.wfs.option.AsyncMetaDataCaching { |
