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

Add support for the readConcern option.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: