[SERVER-20257] readConcern not passed from DBCollection.count() shell helper to runCommand() Created: 02/Sep/15  Updated: 10/Dec/15  Resolved: 12/Nov/15

Status: Closed
Project: Core Server
Component/s: JavaScript
Affects Version/s: None
Fix Version/s: 3.2.0-rc3

Type: Bug Priority: Major - P3
Reporter: Michael Grundy Assignee: Jonathan Reams
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-6486 .readConcern() shell helper for db.co... Closed
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Build A (10/09/15), Build B (10/30/15), Build C (11/20/15)
Participants:

 Description   

Count issued in shell

assert.eq(10, t.count({_id:{$exists:true}},{readConcern:{level:"majority"}}));

Object passed to runCommand:

{
    "count" : "readMajority",
    "query" : { 
        "_id" : { 
            "$exists" : true
        }   
    },  
    "fields" : { 
        
    }   
}



 Comments   
Comment by Githook User [ 12/Nov/15 ]

Author:

{u'username': u'jbreams', u'name': u'Jonathan Reams', u'email': u'jbreams@mongodb.com'}

Message: SERVER-20257 Support readConcern in count command shell helper
Branch: master
https://github.com/mongodb/mongo/commit/80f0a56bfb80c17bf6edc8a35d7cab2f0c6016b0

Comment by Eric Milkie [ 02/Sep/15 ]

The count shell helper needs refactoring in general, as it appears to build a count command via two different code paths for no discernable reason.

Generated at Thu Feb 08 03:53:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.