0
0
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:
Tess Avitabile 2016-02-10 10:15:36 -05:00
parent 4b4cbf4dc3
commit 067f160fb9

View File

@ -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