diff options
| author | Chris Lu <chris.lu@gmail.com> | 2018-12-28 15:10:23 -0800 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2018-12-28 15:10:23 -0800 |
| commit | 79168ab0bb408482d0ac059eef4aaadd1eecffff (patch) | |
| tree | 3940fd49ac3c69d6212362697d5b3a939c913a25 | |
| parent | 308ac1d0d27e7a4f0dc326d5a8475f6d517f1ef4 (diff) | |
| download | seaweedfs-79168ab0bb408482d0ac059eef4aaadd1eecffff.tar.xz seaweedfs-79168ab0bb408482d0ac059eef4aaadd1eecffff.zip | |
adjust error and log
| -rw-r--r-- | weed/filesys/dir_rename.go | 2 | ||||
| -rw-r--r-- | weed/filesys/file.go | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/weed/filesys/dir_rename.go b/weed/filesys/dir_rename.go index 348f144a6..2cbec6b90 100644 --- a/weed/filesys/dir_rename.go +++ b/weed/filesys/dir_rename.go @@ -26,7 +26,7 @@ func (dir *Dir) Rename(ctx context.Context, req *fuse.RenameRequest, newDirector glog.V(4).Infof("find existing directory entry: %v", request) resp, err := client.LookupDirectoryEntry(ctx, request) if err != nil { - glog.V(0).Infof("renaming find %s/%s: %v", dir.Path, req.OldName, err) + glog.V(3).Infof("renaming find %s/%s: %v", dir.Path, req.OldName, err) return fuse.ENOENT } diff --git a/weed/filesys/file.go b/weed/filesys/file.go index a41d0d8e6..fd7903b20 100644 --- a/weed/filesys/file.go +++ b/weed/filesys/file.go @@ -145,13 +145,13 @@ func (file *File) maybeLoadAttributes(ctx context.Context) error { resp, err := client.LookupDirectoryEntry(ctx, request) if err != nil { - glog.V(0).Infof("file attr read file %v: %v", request, err) - return err + glog.V(3).Infof("file attr read file %v: %v", request, err) + return fuse.ENOENT } file.entry = resp.Entry - glog.V(1).Infof("file attr %v %+v: %d", file.fullpath(), file.entry.Attributes, filer2.TotalSize(file.entry.Chunks)) + 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) |
