mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
Remove the redundant conditional in the validateParity function (#16866)
This commit is contained in:
parent
5e3bfd2148
commit
2d51e42305
@ -204,7 +204,7 @@ func validateParity(ssParity, rrsParity, setDriveCount int) (err error) {
|
||||
}
|
||||
|
||||
if ssParity > 0 && rrsParity > 0 {
|
||||
if ssParity > 0 && ssParity < rrsParity {
|
||||
if ssParity < rrsParity {
|
||||
return fmt.Errorf("Standard storage class parity drives %d should be greater than or equal to Reduced redundancy storage class parity drives %d", ssParity, rrsParity)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user