From 2b2e185ed32753522aa3dce3f18e7cb2303912d2 Mon Sep 17 00:00:00 2001 From: Mike Dirolf Date: Tue, 14 Sep 2010 10:24:30 -0400 Subject: [PATCH] shell: use -abs(limit) for explain, not -limit --- shell/query.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/query.js b/shell/query.js index ebd3a22bdd6..522b5645620 100644 --- a/shell/query.js +++ b/shell/query.js @@ -238,7 +238,7 @@ DBQuery.prototype.explain = function (verbose) { var n = this.clone(); n._ensureSpecial(); n._query.$explain = true; - n._limit = n._limit * -1; + n._limit = Math.abs(n._limit) * -1; var e = n.next(); if (!verbose) { delete e.allPlans;