Skip to content

Commit

Permalink
s3: break loop if error
Browse files Browse the repository at this point in the history
fix #1701
  • Loading branch information
chrislusf committed Dec 23, 2020
1 parent 1c7e129 commit db62090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weed/s3api/s3api_objects_list_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ func (s3a *S3ApiServer) isDirectoryAllEmpty(filerClient filer_pb.SeaweedFilerCli
currentDir := parentDir + "/" + name
var startFrom string
var isExhausted bool
for fileCounter == 0 && !isExhausted {
for fileCounter == 0 && !isExhausted && err == nil {
err = filer_pb.SeaweedList(filerClient, currentDir, "", func(entry *filer_pb.Entry, isLast bool) error {
if entry.IsDirectory {
subDirs = append(subDirs, entry.Name)
Expand Down

0 comments on commit db62090

Please sign in to comment.