Elffuss BraidHub

kikocis/java-driver public

Don't do post-prepare phase on I/O thread
Changesetc3118eb39c7944bec2c7423dc94246b92b160d60f574d27eeac59ed97df2c3e6
AuthorSylvain Lebresne <sylvain@datastax.com> · 2014-02-24 17:09 +01:00
CommitterSylvain Lebresne <sylvain@datastax.com> · 2014-02-24 17:09 +01:00
Parents58739bfde29a

Browse the files at this changeset

1 file changed

modified driver-core/src/main/java/com/datastax/driver/core/SessionManager.java +1 −1
@@ -191,7 +191,7 @@
191191 throw new DriverInternalError(String.format("%s response received when prepared statement was expected", response.type));
192192 }
193193 }
194- });
194+ }, executor()); // Since the transformation involves querying other nodes, we should not do that in an I/O thread
195195 }
196196
197197 Connection.Factory connectionFactory() {