summaryrefslogtreecommitdiff
path: root/src/mongo/shell/query.js
diff options
context:
space:
mode:
authorJames Wahlin <james@mongodb.com>2018-06-04 13:43:50 -0400
committerJames Wahlin <james@mongodb.com>2018-06-11 09:25:31 -0400
commit1c21898e28a73f1ab81fe1fa3d0e185d4ab916a8 (patch)
tree9e5588fc17b446c624d5328cb29c2a61a6fadd54 /src/mongo/shell/query.js
parent0dd1fc7ddde2a489558f5328dce5125bddfb9e4d (diff)
downloadmongo-1c21898e28a73f1ab81fe1fa3d0e185d4ab916a8.tar.gz
SERVER-35044 Remove maxScan query option
Diffstat (limited to 'src/mongo/shell/query.js')
-rw-r--r--src/mongo/shell/query.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/mongo/shell/query.js b/src/mongo/shell/query.js
index fcbcd5a39b3..a0600845898 100644
--- a/src/mongo/shell/query.js
+++ b/src/mongo/shell/query.js
@@ -40,7 +40,6 @@ DBQuery.prototype.help = function() {
"\t.explain(<verbosity>) - accepted verbosities are {'queryPlanner', 'executionStats', 'allPlansExecution'}");
print("\t.min({...})");
print("\t.max({...})");
- print("\t.maxScan(<n>)");
print("\t.maxTimeMS(<n>)");
print("\t.comment(<comment>)");
print("\t.tailable(<isAwaitData>)");
@@ -197,10 +196,6 @@ DBQuery.prototype._convertToCommand = function(canAttachReadPref) {
cmd["comment"] = this._query.$comment;
}
- if ("$maxScan" in this._query) {
- cmd["maxScan"] = this._query.$maxScan;
- }
-
if ("$maxTimeMS" in this._query) {
cmd["maxTimeMS"] = this._query.$maxTimeMS;
}
@@ -524,10 +519,6 @@ DBQuery.prototype.returnKey = function() {
return this._addSpecial("$returnKey", true);
};
-DBQuery.prototype.maxScan = function(n) {
- return this._addSpecial("$maxScan", n);
-};
-
DBQuery.prototype.pretty = function() {
this._prettyShell = true;
return this;
@@ -654,7 +645,7 @@ DBQuery.prototype.modifiers = function(document) {
for (var name in document) {
if (name[0] != '$') {
- throw new Error('All modifiers must start with a $ such as $maxScan or $returnKey');
+ throw new Error('All modifiers must start with a $ such as $returnKey');
}
}