Skip to content

Commit

Permalink
Fix domain registration to default with current cluster name for loca…
Browse files Browse the repository at this point in the history
…l domain (#4055)
  • Loading branch information
longquanzheng authored Mar 16, 2021
1 parent b6dfe37 commit 1b63fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/domain/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (d *handlerImpl) RegisterDomain(

activeClusterName := d.clusterMetadata.GetCurrentClusterName()
// input validation on cluster names
if registerRequest.ActiveClusterName != nil {
if registerRequest.ActiveClusterName != nil && *registerRequest.ActiveClusterName != "" {
activeClusterName = registerRequest.GetActiveClusterName()
}
clusters := []*persistence.ClusterReplicationConfig{}
Expand Down

0 comments on commit 1b63fb7

Please sign in to comment.