Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-254

Add support for the readConcern option.

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None
    • None

      The Read Concern specification details the specifics of implementing read concern in your driver. You'll find that it is very similar to write concern.


      How it looks like for commands:
      db.runCommand({
          find: ....,
          readConcern : {
              level: “[majority|local]”
          }
      });
      
      Note: readConcern is only supported for the new find command helper, not legacy OP_QUERY queries.


      New URI option:
      mongodb://server:27017/db?readConcernLevel=[majority|local]
      


      The commands that accept read concern are listed below:

      • find
      • aggregate without $out
      • mapReduce when the result is inline
      • distinct
      • count
      • parallelCollectionScan
      • geoNear
      • geoSearch
      You only need to add support for these commands to your helper methods. Users using the runCommand method on your database object will need to supply a readConcern manually.

            Assignee:
            craig.wilson@mongodb.com Craig Wilson
            Reporter:
            barrie Barrie Segal
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: