diff --git a/pymongo/common.py b/pymongo/common.py index 0f35c86c1..a62114ad1 100644 --- a/pymongo/common.py +++ b/pymongo/common.py @@ -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`. diff --git a/pymongo/mongo_client.py b/pymongo/mongo_client.py index f1eec20ef..439757a41 100644 --- a/pymongo/mongo_client.py +++ b/pymongo/mongo_client.py @@ -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 """ diff --git a/pymongo/mongo_replica_set_client.py b/pymongo/mongo_replica_set_client.py index dc8b1c9a2..e09cf850e 100644 --- a/pymongo/mongo_replica_set_client.py +++ b/pymongo/mongo_replica_set_client.py @@ -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 """