do not list buckets without local quorum (#20852)

ListBuckets() would result in listing buckets
without quorum, this PR fixes the behavior.
This commit is contained in:
Harshavardhana
2025-01-19 15:13:17 -08:00
committed by GitHub
parent 3d0f513ee2
commit 779ec8f0d4
5 changed files with 54 additions and 34 deletions

View File

@@ -759,7 +759,7 @@ func TestXLStorageListVols(t *testing.T) {
if volInfos, err = xlStorage.ListVols(context.Background()); err != nil {
t.Fatalf("expected: <nil>, got: %s", err)
} else if len(volInfos) != 1 {
t.Fatalf("expected: one entry, got: %s", volInfos)
t.Fatalf("expected: one entry, got: %v", volInfos)
}
// TestXLStorage non-empty list vols.