[CDRIVER-1205] mongoc_collection_count_with_opts ignores flags and read_prefs Created: 19/Apr/16  Updated: 19/Oct/16  Resolved: 30/Sep/16

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: 1.3.5
Fix Version/s: 1.4.0, 1.5.0

Type: Bug Priority: Major - P3
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:
Related
related to CDRIVER-1137 Server Selection Spec for "query-like... Closed
Backwards Compatibility: Minor Change

 Comments   
Comment by Githook User [ 29/Sep/16 ]

Author:

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

Message: CDRIVER-1205 count_with_opts uses collection read pref

If no read preference is passed in, mongoc_collection_count_with_opts
should default to the collection's read preference.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/3f7c52e1ad550ce6eede9d00d859a5c33d1ee94f

Comment by A. Jesse Jiryu Davis [ 07/Sep/16 ]

I fixed mongoc_collection_count's handling of read preferences, but not mongoc_collection_count_with_opts.

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