mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
fix: report correct pool/set/disk indexes for offline disks (#17695)
This commit is contained in:
@@ -36,7 +36,7 @@ func TestFixFormatV3(t *testing.T) {
|
||||
for _, erasureDir := range erasureDirs {
|
||||
defer os.RemoveAll(erasureDir)
|
||||
}
|
||||
endpoints := mustGetNewEndpoints(0, erasureDirs...)
|
||||
endpoints := mustGetNewEndpoints(0, 8, erasureDirs...)
|
||||
|
||||
storageDisks, errs := initStorageDisksWithErrors(endpoints, false)
|
||||
for _, err := range errs {
|
||||
@@ -555,7 +555,8 @@ func benchmarkInitStorageDisksN(b *testing.B, nDisks int) {
|
||||
if err != nil {
|
||||
b.Fatal(err)
|
||||
}
|
||||
endpoints := mustGetNewEndpoints(0, fsDirs...)
|
||||
|
||||
endpoints := mustGetNewEndpoints(0, 16, fsDirs...)
|
||||
b.RunParallel(func(pb *testing.PB) {
|
||||
endpoints := endpoints
|
||||
for pb.Next() {
|
||||
|
||||
Reference in New Issue
Block a user