aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-12-24 17:45:26 -0800
committerChris Lu <chris.lu@gmail.com>2018-12-24 17:45:26 -0800
commit9eb2bee86a40bf6c5f4d584e397426d00d84db99 (patch)
treed08fc557455888816e19d3cb3839cafdabd07c7c
parentba923e2864da7aae864a4a3d9185212092339142 (diff)
downloadseaweedfs-9eb2bee86a40bf6c5f4d584e397426d00d84db99.tar.xz
seaweedfs-9eb2bee86a40bf6c5f4d584e397426d00d84db99.zip
avoid error log if not found
-rw-r--r--weed/filesys/dir.go3
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
}