mirror of
https://github.com/minio/minio.git
synced 2026-11-13 14:44:19 +00:00
Disallow versioning/replication change in cluster replication setup (#13910)
This commit is contained in:
1 parent
aca6dfbd60
commit
b42cfcea60
5 files changed
+261
-231
No files matched your search
@@ -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