mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Add comment to hackish solution
This commit is contained in:
parent
5604e32d57
commit
0c8927dbbe
@ -27,9 +27,11 @@ class MongoDBChangeFeed(ChangeFeed):
|
|||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
# XXX: hack to force reconnection,
|
# XXX: hack to force reconnection. Why? Because the cursor
|
||||||
# the correct way to fix this is to manage errors
|
# in `run_changefeed` does not run in the context of a
|
||||||
# for cursors.conn
|
# Connection object, so if the connection is lost we need
|
||||||
|
# to manually reset the connection to None.
|
||||||
|
# See #1154
|
||||||
self.connection.connection = None
|
self.connection.connection = None
|
||||||
self.run_changefeed()
|
self.run_changefeed()
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user