Elffuss BraidHub

kikocis/java-driver public

Clarify comment in SessionManager.
Changeset22c9a3c32b30763f75dadff8df8565af2d5a93afc8e5dd00ee27a27d50d5740f
Authorolim7t <omichallat+github@gmail.com> · 2014-11-10 09:58 +01:00
Committerolim7t <omichallat+github@gmail.com> · 2014-11-10 10:46 +01:00
Parentsf00a5d7a8674

Browse the files at this changeset

1 file changed

modified driver-core/src/main/java/com/datastax/driver/core/SessionManager.java +3 −3
@@ -328,9 +328,9 @@
328328 * have one, and hosts that shouldn't don't.
329329 */
330330 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.
334334 if (!isInit)
335335 return;
336336