mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Disallow versioning/replication change in cluster replication setup (#13910)
This commit is contained in:
@@ -1635,6 +1635,13 @@ func (c *SiteReplicationSys) annotatePeerErr(dstPeer string, annotation string,
|
||||
return fmt.Errorf("%s->%s: %s: %v", c.state.Name, dstPeer, annotation, err)
|
||||
}
|
||||
|
||||
// isEnabled returns true if site replication is enabled
|
||||
func (c *SiteReplicationSys) isEnabled() bool {
|
||||
c.RLock()
|
||||
defer c.RUnlock()
|
||||
return c.enabled
|
||||
}
|
||||
|
||||
// Other helpers
|
||||
|
||||
// newRemoteClusterHTTPTransport returns a new http configuration
|
||||
|
||||
Reference in New Issue
Block a user