s3: log errors instead of stopping when checking isDirectoryAllEmpty has error

This commit is contained in:
Chris Lu 2020-12-23 12:21:21 -08:00
parent db62090f88
commit 132f275d04

View file

@ -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)