Skip to content

Commit

Permalink
Merge pull request apache#440 from deepakverma/demandslave
Browse files Browse the repository at this point in the history
check the endpoints are actually equal to populate the cluster master…
  • Loading branch information
mgravell committed Jan 5, 2017
2 parents 11be4b5 + facbb4a commit 87de5fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion StackExchange.Redis/StackExchange/Redis/ServerEndPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public void SetClusterConfiguration(ClusterConfiguration configuration)
multiplexer.Trace("Updating cluster ranges...");
multiplexer.UpdateClusterRange(configuration);
multiplexer.Trace("Resolving genealogy...");
var thisNode = configuration.Nodes.FirstOrDefault(x => x.EndPoint == this.EndPoint);
var thisNode = configuration.Nodes.FirstOrDefault(x => x.EndPoint.Equals(this.EndPoint));
if (thisNode != null)
{
List<ServerEndPoint> slaves = null;
Expand Down

0 comments on commit 87de5fb

Please sign in to comment.