summaryrefslogtreecommitdiff
path: root/src/mongo/shell/query.js
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2015-10-29 15:04:05 -0400
committerJonathan Reams <jbreams@mongodb.com>2015-11-12 15:54:52 -0500
commit80f0a56bfb80c17bf6edc8a35d7cab2f0c6016b0 (patch)
tree59d956e445a332cdc9e39ea1a63ef96ce2628de7 /src/mongo/shell/query.js
parent18c8ebacb0e90795dc8e83bf419c2cccad229026 (diff)
downloadmongo-80f0a56bfb80c17bf6edc8a35d7cab2f0c6016b0.tar.gz
SERVER-20257 Support readConcern in count command shell helper
Diffstat (limited to 'src/mongo/shell/query.js')
-rw-r--r--src/mongo/shell/query.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/shell/query.js b/src/mongo/shell/query.js
index c33ce619f47..50caf0330dd 100644
--- a/src/mongo/shell/query.js
+++ b/src/mongo/shell/query.js
@@ -331,6 +331,9 @@ DBQuery.prototype._convertToCountCmd = function( applySkipLimit ) {
if ( this._query.$hint ) {
cmd.hint = this._query.$hint;
}
+ if ( this._query.readConcern ) {
+ cmd.readConcern = this._query.readConcern;
+ }
}
else {
cmd.query = this._query;