mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
warn when 0 parity has been set as default parity (#15790)
This commit is contained in:
parent
121f18a443
commit
3c605c93fe
@ -357,6 +357,10 @@ func newErasureSets(ctx context.Context, endpoints PoolEndpoints, storageDisks [
|
|||||||
endpointStrings[i] = endpoint.String()
|
endpointStrings[i] = endpoint.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if defaultParityCount == 0 {
|
||||||
|
logger.Error("Warning: Default parity set to 0. This can lead to data loss.")
|
||||||
|
}
|
||||||
|
|
||||||
// Initialize the erasure sets instance.
|
// Initialize the erasure sets instance.
|
||||||
s := &erasureSets{
|
s := &erasureSets{
|
||||||
sets: make([]*erasureObjects, setCount),
|
sets: make([]*erasureObjects, setCount),
|
||||||
|
Loading…
Reference in New Issue
Block a user