mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
SERVER-21785 Explain with shell does not negate limit
This commit is contained in:
parent
4b4cbf4dc3
commit
067f160fb9
@ -136,10 +136,7 @@ var DBExplainQuery = (function() {
|
||||
|
||||
// Explain always gets pretty printed.
|
||||
this._query._prettyShell = true;
|
||||
|
||||
// Explain always passes a negative value for limit.
|
||||
this._query._limit = Math.abs(this._query._limit) * -1;
|
||||
|
||||
|
||||
if (this._mongo.hasExplainCommand()) {
|
||||
// The wire protocol version indicates that the server has the explain command.
|
||||
// Convert this explain query into an explain command, and send the command to
|
||||
|
Loading…
Reference in New Issue
Block a user