mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
fix: benchmarking test initialization
> go test -run=none -bench=Benchmark github.com/minio/minio/cmd Runs now without any crashes. fixes #13380
This commit is contained in:
@@ -416,8 +416,7 @@ func newErasureSets(ctx context.Context, endpoints Endpoints, storageDisks []Sto
|
||||
continue
|
||||
}
|
||||
if m != i || n != j {
|
||||
return nil, fmt.Errorf("found a disk in an unexpected location, pool: %d, found (set=%d, disk=%d) expected (set=%d, disk=%d)",
|
||||
poolIdx, m, n, i, j)
|
||||
return nil, fmt.Errorf("found a disk in an unexpected location, pool: %d, found (set=%d, disk=%d) expected (set=%d, disk=%d): %s(%s)", poolIdx, m, n, i, j, disk, diskID)
|
||||
}
|
||||
disk.SetDiskLoc(s.poolIndex, m, n)
|
||||
s.endpointStrings[m*setDriveCount+n] = disk.String()
|
||||
|
||||
Reference in New Issue
Block a user