Avoid moving retry to next host when request ID == 0

Fixes PYTHON-88
This commit is contained in:
Tyler Hobbs
2014-07-16 17:59:12 -05:00
parent d67699db26
commit 3cdde48400
2 changed files with 2 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ In Progress
Bug Fixes
---------
* Properly specify UDTs for columns in CREATE TABLE statements
* Avoid moving retries to a new host when using request ID zero (PYTHON-88)
Other
-----

View File

@@ -2558,7 +2558,7 @@ class ResponseFuture(object):
# to retry the operation
return
if reuse_connection and self._query(self._current_host):
if reuse_connection and self._query(self._current_host) is not None:
return
# otherwise, move onto another host