kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | 22c9a3c32b30763f75dadff8df8565af2d5a93afc8e5dd00ee27a27d50d5740f |
|---|---|
| Author | olim7t <omichallat+github@gmail.com> · 2014-11-10 09:58 +01:00 |
| Committer | olim7t <omichallat+github@gmail.com> · 2014-11-10 10:46 +01:00 |
| Parents | f00a5d7a8674 |
1 file changed
modified driver-core/src/main/java/com/datastax/driver/core/SessionManager.java +3 −3
| @@ -328,9 +328,9 @@ | ||
| 328 | 328 | * have one, and hosts that shouldn't don't. |
| 329 | 329 | */ |
| 330 | 330 | void updateCreatedPools(ListeningExecutorService executor) { |
| 331 | - // Don't run this during initialization, as some hosts may be non-responsive but not yet marked DOWN, and | |
| 332 | - // we would try to create their pool over and over again. | |
| 333 | - // We run it once at the end of init(). | |
| 331 | + // This method does nothing during initialization. Some hosts may be non-responsive but not yet marked DOWN; if | |
| 332 | + // we execute the code below we would try to create their pool over and over again. | |
| 333 | + // It's called explicitly at the end of init(), once isInit has been set to true. | |
| 334 | 334 | if (!isInit) |
| 335 | 335 | return; |
| 336 | 336 |