diff options
author | James Wahlin <james@mongodb.com> | 2018-06-04 13:43:50 -0400 |
---|---|---|
committer | James Wahlin <james@mongodb.com> | 2018-06-11 09:25:31 -0400 |
commit | 1c21898e28a73f1ab81fe1fa3d0e185d4ab916a8 (patch) | |
tree | 9e5588fc17b446c624d5328cb29c2a61a6fadd54 /src/mongo/shell/query.js | |
parent | 0dd1fc7ddde2a489558f5328dce5125bddfb9e4d (diff) | |
download | mongo-1c21898e28a73f1ab81fe1fa3d0e185d4ab916a8.tar.gz |
SERVER-35044 Remove maxScan query option
Diffstat (limited to 'src/mongo/shell/query.js')
-rw-r--r-- | src/mongo/shell/query.js | 11 |
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'); } } |