mirror of
https://github.com/minio/minio.git
synced 2025-11-09 05:34:56 -05:00
rename zones to serverSets to avoid terminology conflict (#10679)
we are bringing in availability zones, we should avoid zones as per server expansion concept.
This commit is contained in:
@@ -148,13 +148,13 @@ func TestShuffleDisks(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer removeRoots(disks)
|
||||
z := objLayer.(*erasureZones)
|
||||
z := objLayer.(*erasureServerSets)
|
||||
testShuffleDisks(t, z)
|
||||
}
|
||||
|
||||
// Test shuffleDisks which returns shuffled slice of disks for their actual distribution.
|
||||
func testShuffleDisks(t *testing.T, z *erasureZones) {
|
||||
disks := z.zones[0].GetDisks(0)()
|
||||
func testShuffleDisks(t *testing.T, z *erasureServerSets) {
|
||||
disks := z.serverSets[0].GetDisks(0)()
|
||||
distribution := []int{16, 14, 12, 10, 8, 6, 4, 2, 1, 3, 5, 7, 9, 11, 13, 15}
|
||||
shuffledDisks := shuffleDisks(disks, distribution)
|
||||
// From the "distribution" above you can notice that:
|
||||
@@ -196,6 +196,6 @@ func TestEvalDisks(t *testing.T) {
|
||||
t.Fatal(err)
|
||||
}
|
||||
defer removeRoots(disks)
|
||||
z := objLayer.(*erasureZones)
|
||||
z := objLayer.(*erasureServerSets)
|
||||
testShuffleDisks(t, z)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user