Permalink
Browse files

Fixed bootStrap URL issue in AdminClient.

  • Loading branch information...
1 parent 108c448 commit 249d3631b557cfcee7a118bfc760d48ee5165212 @bbansal bbansal committed Dec 15, 2009
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/java/voldemort/client/protocol/admin/AdminClient.java
View
7 src/java/voldemort/client/protocol/admin/AdminClient.java
@@ -74,14 +74,13 @@
private static final StoreDefinitionsMapper storeMapper = new StoreDefinitionsMapper();
// Parameters for exponential back off
- private static final long INITIAL_DELAY = 250; // Initial delay
- private static final long MAX_DELAY = 1000 * 60; // Stop doing exponential
- // back off once delay
- // reaches this
+ private static final long INITIAL_DELAY = 250;
+ private static final long MAX_DELAY = 1000 * 60;
private Cluster cluster;
public AdminClient(String bootstrapURL, ClientConfig config) {
+ config.setBootstrapUrls(bootstrapURL);
this.cluster = getClusterFromBootstrapURL(bootstrapURL, config);
this.errorMapper = new ErrorCodeMapper();
this.pool = createSocketPool(config);

0 comments on commit 249d363

Please sign in to comment.