[CDRIVER-2056] mongoc_uri_get_option_as_int32() does not allow a localThresholdMS of zero Created: 15/Feb/17 Updated: 30/Jun/20 Resolved: 02/Mar/17 |
|
| Status: | Closed |
| Project: | C Driver |
| Component/s: | libmongoc, uri |
| Affects Version/s: | 1.5.4, 1.6.0 |
| Fix Version/s: | 1.5.5, 1.6.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Jeremy Mikola | Assignee: | Jeremy Mikola |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Description |
|
The server selection spec states the following:
mongoc_topology_new() initializes its copy of localThresholdMS by calling mongoc_uri_get_option_as_int32(). which does not respect a zero value and instead returns the fallback of 15ms (as documented). One solution may be to create a separate getter that respects zero, as was done with _mongoc_uri_get_max_staleness_option(). |
| Comments |
| Comment by A. Jesse Jiryu Davis [ 02/Mar/17 ] |
|
r1.6: https://github.com/mongodb/mongo-c-driver/commit/dcff494ef62475ea2e5628461997ba5da001aca8 |
| Comment by Githook User [ 02/Mar/17 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}Message: |
| Comment by Githook User [ 28/Feb/17 ] |
|
Author: {u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@emptysquare.net'}Message: Merge pull request #424 from jmikola/1.5-cdriver-2056
|
| Comment by Githook User [ 28/Feb/17 ] |
|
Author: {u'username': u'jmikola', u'name': u'Jeremy Mikola', u'email': u'jmikola@gmail.com'}Message: |
| Comment by Jeremy Mikola [ 16/Feb/17 ] |