Skip to content

Commit

Permalink
Fix hard coded dependency on node with id 0 in AdminClient
Browse files Browse the repository at this point in the history
  • Loading branch information
singhsiddharth committed Dec 5, 2013
1 parent 5f5a0b3 commit 304f949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/java/voldemort/client/protocol/admin/AdminClient.java
Expand Up @@ -240,7 +240,7 @@ public AdminClient(Cluster cluster,
ClientConfig clientConfig) {
this(adminClientConfig, clientConfig);
this.currentCluster = cluster;
Node node = cluster.getNodeById(0);
Node node = cluster.getNodeById(cluster.getNodeIds().iterator().next());
String bootstrapURL = "tcp://" + node.getHost() + ":" + node.getSocketPort();
helperOps.cacheSystemStoreParams(bootstrapURL, DEFAULT_ZONE_ID);
}
Expand Down

0 comments on commit 304f949

Please sign in to comment.