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:
Poorna 2023-11-08 00:40:25 -08:00 committed by GitHub
parent 079b6c2b50
commit 8c9974bc0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3787,14 +3787,6 @@ func (c *SiteReplicationSys) PeerEditReq(ctx context.Context, arg madmin.PeerInf
p := c.state.Peers[i] p := c.state.Peers[i]
if p.DeploymentID == arg.DeploymentID { if p.DeploymentID == arg.DeploymentID {
p.Endpoint = arg.Endpoint 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 c.state.Peers[arg.DeploymentID] = p
} }
if p.DeploymentID == globalDeploymentID() { if p.DeploymentID == globalDeploymentID() {