mirror of
https://github.com/minio/minio.git
synced 2025-01-23 12:43:16 -05:00
site replication: avoid propagating bucket b/w settings (#18399)
replication mode and bucket bandwidth are one-way and should not be propagated to peer cluster. Regression from #18062
This commit is contained in:
parent
079b6c2b50
commit
8c9974bc0f
@ -3787,14 +3787,6 @@ func (c *SiteReplicationSys) PeerEditReq(ctx context.Context, arg madmin.PeerInf
|
||||
p := c.state.Peers[i]
|
||||
if p.DeploymentID == arg.DeploymentID {
|
||||
p.Endpoint = arg.Endpoint
|
||||
if arg.DefaultBandwidth.IsSet {
|
||||
if arg.DefaultBandwidth.UpdatedAt.After(p.DefaultBandwidth.UpdatedAt) {
|
||||
p.DefaultBandwidth = arg.DefaultBandwidth
|
||||
}
|
||||
}
|
||||
if !arg.SyncState.Empty() {
|
||||
p.SyncState = arg.SyncState
|
||||
}
|
||||
c.state.Peers[arg.DeploymentID] = p
|
||||
}
|
||||
if p.DeploymentID == globalDeploymentID() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user