mirror of
https://github.com/minio/minio
synced 2024-09-15 22:20:34 +00: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 a new issue