Elffuss BraidHub

kikocis/java-driver public

Fix a stackoverflow in Cluster init
Changeset7be940daff2501d2ee11c5e2daacc85a5c5d3cc41ea6c95714514b4a032969e8
AuthorMichael Figuiere <mfiguiere@datastax.com> · 2014-02-25 21:35 -08:00
CommitterMichael Figuiere <mfiguiere@datastax.com> · 2014-02-25 21:35 -08:00
Parentsf34fbd382447

Browse the files at this changeset

1 file changed

modified driver-core/src/main/java/com/datastax/driver/core/Cluster.java +1 −1
@@ -794,6 +794,7 @@
794794 private synchronized void init() {
795795 if (isInit)
796796 return;
797+ isInit = true;
797798
798799 // Note: we mark the initial contact point as UP, because we have no prior
799800 // notion of their state and no real way to know until we connect to them
@@ -818,7 +819,6 @@
818819 throw e;
819820 }
820821
821- isInit = true;
822822 }
823823
824824 Cluster getCluster() {