aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-12-23 12:21:21 -0800
committerChris Lu <chris.lu@gmail.com>2020-12-23 12:21:21 -0800
commit132f275d04df3efa925c0d3d071bc927d669f489 (patch)
tree6d9e4457c90f98394ecbc02e4304261576290613
parentdb62090f88b6af9d44c7a92f8ccb075e93b3d9a3 (diff)
downloadseaweedfs-132f275d04df3efa925c0d3d071bc927d669f489.tar.xz
seaweedfs-132f275d04df3efa925c0d3d071bc927d669f489.zip
s3: log errors instead of stopping when checking isDirectoryAllEmpty has error
-rw-r--r--weed/s3api/s3api_objects_list_handlers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/s3api/s3api_objects_list_handlers.go b/weed/s3api/s3api_objects_list_handlers.go
index b674f87cd..0af099967 100644
--- a/weed/s3api/s3api_objects_list_handlers.go
+++ b/weed/s3api/s3api_objects_list_handlers.go
@@ -265,7 +265,7 @@ func (s3a *S3ApiServer) doListFilerEntries(client filer_pb.SeaweedFilerClient, d
} else {
var isEmpty bool
if isEmpty, err = s3a.isDirectoryAllEmpty(client, dir, entry.Name); err != nil {
- return
+ glog.Errorf("check empty folder %s: %v", dir, err)
}
if !isEmpty {
eachEntryFn(dir, entry)