PYTHON-890 - Minor doc fixes.

This commit is contained in:
Bernie Hackett 2015-06-08 13:38:12 -07:00
parent 6e4608b9cd
commit a08f16d9dc
3 changed files with 5 additions and 5 deletions

View File

@ -580,8 +580,8 @@ class BaseObject(object):
def __get_acceptable_latency(self):
"""Any replica-set member whose ping time is within
secondary_acceptable_latency_ms of the nearest member may accept
reads. Defaults to 15 milliseconds.
:attr:`secondary_acceptable_latency_ms` of the nearest member may
accept reads. Defaults to 15 milliseconds.
See :class:`~pymongo.read_preferences.ReadPreference`.

View File

@ -207,7 +207,7 @@ class MongoClient(common.BaseObject):
ignoring tags. Defaults to ``[{}]``, meaning "ignore members'
tags."
- `secondaryAcceptableLatencyMS`: (integer) Any replica-set member
whose ping time is within secondary_acceptable_latency_ms of the
whose ping time is within secondaryAcceptableLatencyMS of the
nearest member may accept reads. Default 15 milliseconds.
**Ignored by mongos** and must be configured on the command line.
See the localThreshold_ option for more information.
@ -703,7 +703,7 @@ class MongoClient(common.BaseObject):
@property
def local_threshold_ms(self):
"""Alias for secondary_acceptable_latency_ms.
"""Alias for :attr:`secondary_acceptable_latency_ms`.
.. versionadded:: 2.9
"""

View File

@ -1027,7 +1027,7 @@ class MongoReplicaSetClient(common.BaseObject):
@property
def local_threshold_ms(self):
"""Alias for secondary_acceptable_latency_ms.
"""Alias for :attr:`secondary_acceptable_latency_ms`.
.. versionadded:: 2.9
"""