From 8c9974bc0f645131080ee1b55bad180d7fb751a2 Mon Sep 17 00:00:00 2001 From: Poorna Date: Wed, 8 Nov 2023 00:40:25 -0800 Subject: [PATCH] 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 --- cmd/site-replication.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cmd/site-replication.go b/cmd/site-replication.go index cdba1614a..4068b2415 100644 --- a/cmd/site-replication.go +++ b/cmd/site-replication.go @@ -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() {