[CDRIVER-1137] Server Selection Spec for "query-like" command helpers Created: 24/Feb/16  Updated: 10/Aug/16  Resolved: 25/Apr/16

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

Type: Improvement 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-807 Remove secondary-ok commands whitelist Closed
is related to CDRIVER-1205 mongoc_collection_count_with_opts ign... Closed

 Description   

The Server Selection Spec says:

The current list of "may-use-secondary" commands includes:

  • group
  • mapreduce
  • aggregate
  • collStats, dbStats
  • count, distinct
  • geoNear, geoSearch, geoWalk
  • parallelCollectionScan
  • text

Associated command-specific helpers SHOULD take a read preference argument and otherwise MUST use the default read preference from client, database or collection configuration.

https://github.com/mongodb/specifications/blob/master/source/server-selection/server-selection.rst#use-of-read-preferences-with-commands

C Driver status:

  • group - no helper function
  • mapreduce - no helper function
  • aggregate - up to spec, uses collection's read pref
  • collStats, dbStats - we only have collStats, needs to be updated
  • count, distinct - we only have count, needs to be updated
  • geoNear, geoSearch, geoWalk - no helper functions
  • parallelCollectionScan - no helper
  • text - no helper


 Comments   
Comment by Githook User [ 25/Apr/16 ]

Author:

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

Message: CDRIVER-1137 use read pref for count and collStats

mongoc_collection_count and mongoc_collection_stats now default to the
collection's read preference.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/723d5b6784b83c4ea75fa5bafb4d74827dc78860

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