Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
Revert "cherrypic from master for cluster doubleinit"
Browse files Browse the repository at this point in the history
This reverts commit dd6a5c3.
  • Loading branch information
zznate committed Sep 27, 2010
1 parent dd6a5c3 commit 770c4a1
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -37,7 +37,7 @@
private final CassandraClientMonitor clientMonitor;

private CassandraHostConfigurator cassandraHostConfigurator;
private final Cluster cluster;
private Cluster cluster;

public CassandraClientPoolImpl(CassandraClientMonitor clientMonitor) {
log.info("Creating a CassandraClientPool");
Expand All @@ -54,12 +54,14 @@ public CassandraClientPoolImpl(CassandraClientMonitor clientMonitor,
log.debug("Maybe creating pool-by-host instance for {} at {}", cassandraHost, this);
getPool(cassandraHost);
}
this.cluster = new ClusterImpl("Default Cluster", this);
}

public CassandraClientPoolImpl(CassandraClientMonitor clientMonitor,
CassandraHostConfigurator cassandraHostConfigurator) {
this(clientMonitor, cassandraHostConfigurator.buildCassandraHosts());
this.cassandraHostConfigurator = cassandraHostConfigurator;
this.cluster = new ClusterImpl("Default Cluster", this);
}


Expand Down

0 comments on commit 770c4a1

Please sign in to comment.