diff --git a/cmd/object-api-common.go b/cmd/object-api-common.go index 99bda79ad..bed1c3014 100644 --- a/cmd/object-api-common.go +++ b/cmd/object-api-common.go @@ -22,7 +22,7 @@ import ( "strings" "sync" - humanize "github.com/dustin/go-humanize" + "github.com/dustin/go-humanize" "github.com/minio/minio/internal/sync/errgroup" ) @@ -289,6 +289,7 @@ func listObjects(ctx context.Context, obj ObjectLayer, bucket, prefix, marker, d if !ok { // Closed channel. eof = true + break } if HasSuffix(walkResult.entry, SlashSeparator) {