We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc046e5 commit 9969677Copy full SHA for 9969677
pymongo/mongo_replica_set_client.py
@@ -1003,8 +1003,12 @@ def close(self):
1003
"""Close this client instance.
1004
1005
This method first terminates the replica set monitor, then disconnects
1006
- from all members of the replica set. Once called this instance
1007
- should not be reused.
+ from all members of the replica set.
+
1008
+ .. warning:: This method stops the replica set monitor task. The
1009
+ replica set monitor is required to properly handle replica set
1010
+ configuration changes, including a failure of the primary.
1011
+ Once :meth:`~close` is called this client instance must not be reused.
1012
1013
.. versionchanged:: 2.2.1
1014
The :meth:`close` method now terminates the replica set monitor.
0 commit comments