Avoid showing buckets without quorum in each pool (#18125)

This commit is contained in:
Anis Eleuch
2023-09-29 00:58:54 -07:00
committed by GitHub
parent e101eeeda9
commit aec023f537
2 changed files with 45 additions and 20 deletions

View File

@@ -22,7 +22,6 @@ import (
"encoding/gob"
"errors"
"net/http"
"sort"
"github.com/minio/minio/internal/logger"
"github.com/minio/mux"
@@ -124,10 +123,6 @@ func listBucketsLocal(ctx context.Context, opts BucketOptions) (buckets []Bucket
}
}
sort.Slice(buckets, func(i, j int) bool {
return buckets[i].Name < buckets[j].Name
})
return buckets, nil
}