@@ -88,8 +88,6 @@ def __init__(self, database, name, create=False, **kwargs):
8888 super (Collection , self ).__init__ (
8989 read_preference = database .read_preference ,
9090 tag_sets = database .tag_sets ,
91- secondary_acceptable_latency_ms = (
92- database .secondary_acceptable_latency_ms ),
9391 uuidrepresentation = database .uuid_subtype ,
9492 ** database .write_concern )
9593
@@ -784,11 +782,6 @@ def find(self, *args, **kwargs):
784782 - `read_preference` (optional): The read preference for
785783 this query.
786784 - `tag_sets` (optional): The tag sets for this query.
787- - `secondary_acceptable_latency_ms` (optional): Any replica-set
788- member whose ping time is within secondary_acceptable_latency_ms of
789- the nearest member may accept reads. Default 15 milliseconds.
790- **Ignored by mongos** and must be configured on the command line.
791- See the localThreshold_ option for more information.
792785 - `compile_re` (optional): if ``False``, don't attempt to compile
793786 BSON regex objects into Python regexes. Return instances of
794787 :class:`~bson.regex.Regex` instead.
@@ -823,7 +816,8 @@ def find(self, *args, **kwargs):
823816 version **>= 1.5.1**
824817
825818 .. versionchanged:: 3.0
826- Removed the ``network_timeout`` parameter.
819+ Removed the `network_timeout` and
820+ `secondary_acceptable_latency_ms` parameters.
827821
828822 .. versionadded:: 2.7
829823 The ``compile_re`` parameter.
@@ -848,15 +842,11 @@ def find(self, *args, **kwargs):
848842 The `tailable` parameter.
849843
850844 .. mongodoc:: find
851- .. _localThreshold: http://docs.mongodb.org/manual/reference/mongos/#cmdoption-mongos--localThreshold
852845 """
853846 if not 'read_preference' in kwargs :
854847 kwargs ['read_preference' ] = self .read_preference
855848 if not 'tag_sets' in kwargs :
856849 kwargs ['tag_sets' ] = self .tag_sets
857- if not 'secondary_acceptable_latency_ms' in kwargs :
858- kwargs ['secondary_acceptable_latency_ms' ] = (
859- self .secondary_acceptable_latency_ms )
860850 return Cursor (self , * args , ** kwargs )
861851
862852 def parallel_scan (self , num_cursors , ** kwargs ):
@@ -907,8 +897,6 @@ def process_cursor(cursor):
907897 'numCursors' : num_cursors ,
908898 'read_preference' : self .read_preference ,
909899 'tag_sets' : self .tag_sets ,
910- 'secondary_acceptable_latency_ms' : (
911- self .secondary_acceptable_latency_ms ),
912900 }
913901 command_kwargs .update (kwargs )
914902
@@ -1288,8 +1276,6 @@ def aggregate(self, pipeline, **kwargs):
12881276 'pipeline' : pipeline ,
12891277 'read_preference' : self .read_preference ,
12901278 'tag_sets' : self .tag_sets ,
1291- 'secondary_acceptable_latency_ms' : (
1292- self .secondary_acceptable_latency_ms ),
12931279 }
12941280
12951281 command_kwargs .update (kwargs )
@@ -1363,8 +1349,6 @@ def group(self, key, condition, initial, reduce, finalize=None, **kwargs):
13631349 uuid_subtype = self .uuid_subtype ,
13641350 read_preference = self .read_preference ,
13651351 tag_sets = self .tag_sets ,
1366- secondary_acceptable_latency_ms = (
1367- self .secondary_acceptable_latency_ms ),
13681352 ** kwargs )["retval" ]
13691353
13701354 def rename (self , new_name , ** kwargs ):
@@ -1469,8 +1453,6 @@ def map_reduce(self, map, reduce, out, full_response=False, **kwargs):
14691453 map = map , reduce = reduce ,
14701454 read_preference = self .read_preference ,
14711455 tag_sets = self .tag_sets ,
1472- secondary_acceptable_latency_ms = (
1473- self .secondary_acceptable_latency_ms ),
14741456 out = out , ** kwargs )
14751457
14761458 if full_response or not response .get ('result' ):
@@ -1519,8 +1501,6 @@ def inline_map_reduce(self, map, reduce, full_response=False, **kwargs):
15191501 uuid_subtype = self .uuid_subtype ,
15201502 read_preference = self .read_preference ,
15211503 tag_sets = self .tag_sets ,
1522- secondary_acceptable_latency_ms = (
1523- self .secondary_acceptable_latency_ms ),
15241504 map = map , reduce = reduce ,
15251505 out = {"inline" : 1 }, ** kwargs )
15261506
0 commit comments