[CDRIVER-785] Configurable localThresholdMS Created: 07/Aug/15  Updated: 10/Aug/16  Resolved: 22/Feb/16

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: None
Fix Version/s: 1.4.0

Type: New Feature Priority: Minor - P4
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on CDRIVER-1096 mongoc_client_select_server Closed
is depended on by PHPC-608 Ensure that localThresholdMS may be c... Closed
Related
related to PHPC-607 Manager::selectServer() should use mo... Closed
Epic Link: Public API for PHP drivers

 Description   

Per server selection spec:

"The default is 15 (milliseconds). It MUST be configurable at the client level. It MUST NOT be configurable at the level of a database object, collection object, or at the level of an individual query."

The default 15ms is correct but hardcoded:

https://github.com/mongodb/mongo-c-driver/blob/e62117d12a600f6cf61eb409933af6f92a3d7c22/src/mongoc/mongoc-cluster.c#L1457

Must be added to URI parser. Must not be added to mongoc_read_prefs_t.



 Comments   
Comment by Githook User [ 23/Feb/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-785 update cursor test
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/27d98d3a1049b637e754cae44624662d63a09949

Comment by Githook User [ 22/Feb/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-785 configurable localThresholdMS
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/5d4811cf53c04ddbf6fd54da808518e4f53239b1

Comment by A. Jesse Jiryu Davis [ 19/Feb/16 ]

Wait for mongoc_client_select_server to be merged before doing this.

Generated at Wed Feb 07 21:10:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.