Disallow versioning/replication change in cluster replication setup (#13910)

This commit is contained in:
Poorna K
2021-12-15 10:37:08 -08:00
committed by GitHub
parent aca6dfbd60
commit b42cfcea60
5 changed files with 261 additions and 231 deletions

View File

@@ -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