@@ -177,9 +177,12 @@ def __init__(self, hosts_or_uri=None, max_pool_size=10,
177
177
consistency guarantees. (The semantics of auto_start_request,
178
178
:class:`~pymongo.ReadPreference`, and :class:`ReplicaSetConnection`
179
179
may change in future releases of PyMongo.)
180
- - `use_greenlets` (optional): if ``True``, :meth:`start_request()`
181
- will ensure that the current greenlet uses the same socket for all
182
- operations until :meth:`end_request()`
180
+ - `use_greenlets` (optional): if ``True``, use a background Greenlet
181
+ instead of a background thread to monitor state of replica set.
182
+ :meth:`start_request()` will ensure that the current greenlet uses
183
+ the same socket for all operations until :meth:`end_request()`.
184
+ `use_greenlets` with ReplicaSetConnection requires `Gevent
185
+ <http://gevent.org/>`_ to be installed.
183
186
- `slave_okay` or `slaveOk` (deprecated): Use `read_preference`
184
187
instead.
185
188
- `host`: For compatibility with connection.Connection. If both
@@ -194,7 +197,7 @@ def __init__(self, hosts_or_uri=None, max_pool_size=10,
194
197
195
198
196
199
.. versionchanged:: 2.2
197
- Added `auto_start_request` option .
200
+ Added `auto_start_request` and `use_greenlets` options .
198
201
Added support for `host`, `port`, and `network_timeout` keyword
199
202
arguments for compatibility with connection.Connection.
200
203
.. versionadded:: 2.1
0 commit comments