603
// When enableSeparateReplicationFlag is false, it falls back to only checking the Enabled flag.
604
// This is a shared helper function used across history service components.
605
>
func IsReplicationEnabledForCluster(clusterInfo ClusterInformation, enableSeparateReplicationFlag bool) bool {
metadata.go
606
>
if enableSeparateReplicationFlag {
607
// New behavior: check both Enabled (for connectivity) and ReplicationEnabled (for replication streams)
608
return clusterInfo.Enabled && clusterInfo.ReplicationEnabled
609
}
610
// Old behavior: only check Enabled flag
612
}