mirror of https://github.com/minio/minio.git
				
				
				
			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] | 		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() { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue