diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-12-24 17:45:26 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-12-24 17:45:26 -0800 |
| commit | 9eb2bee86a40bf6c5f4d584e397426d00d84db99 (patch) | |
| tree | d08fc557455888816e19d3cb3839cafdabd07c7c /weed/filesys/dir.go | |
| parent | ba923e2864da7aae864a4a3d9185212092339142 (diff) | |
| download | seaweedfs-9eb2bee86a40bf6c5f4d584e397426d00d84db99.tar.xz seaweedfs-9eb2bee86a40bf6c5f4d584e397426d00d84db99.zip | |
avoid error log if not found
Diffstat (limited to 'weed/filesys/dir.go')
| -rw-r--r-- | weed/filesys/dir.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go index 3d65478da..14905d4c4 100644 --- a/weed/filesys/dir.go +++ b/weed/filesys/dir.go @@ -64,6 +64,9 @@ func (dir *Dir) Attr(context context.Context, attr *fuse.Attr) error { glog.V(1).Infof("read dir %s attr: %v", dir.Path, request) resp, err := client.LookupDirectoryEntry(context, request) if err != nil { + if err == filer2.ErrNotFound { + return nil + } glog.V(0).Infof("read dir %s attr %v: %v", dir.Path, request, err) return err } |
