summaryrefslogtreecommitdiff
path: root/jstests/queryoptimizera.js
diff options
context:
space:
mode:
authorKevin Matulef <matulef@gmail.com>2012-08-02 08:14:22 -0400
committerKevin Matulef <matulef@gmail.com>2012-08-02 08:14:22 -0400
commitb202965c2aa985232699b059c7135dd64f09700e (patch)
tree46990d7966f7631c09d4c7dc8e87b99db999b51d /jstests/queryoptimizera.js
parentaf67eafd77bb5d77218dae510c5241d410f0337f (diff)
downloadmongo-b202965c2aa985232699b059c7135dd64f09700e.tar.gz
SERVER-5516 SERVER-5304 SERVER-6577 new capped collections now get _id index by default (except in local db)
Diffstat (limited to 'jstests/queryoptimizera.js')
-rw-r--r--jstests/queryoptimizera.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/queryoptimizera.js b/jstests/queryoptimizera.js
index a7d520c15d8..f26c2b0978c 100644
--- a/jstests/queryoptimizera.js
+++ b/jstests/queryoptimizera.js
@@ -52,9 +52,9 @@ function assertNewWarning() {
oldNumWarnings = newNumWarnings;
}
-// Simple _id query without an _id index.
+// Simple _id query
t.find( { _id:0 } ).itcount();
-assertNewWarning();
+assertNoNewWarnings();
// Simple _id query without an _id index, on a non capped collection.
notCapped.find( { _id:0 } ).itcount();
@@ -62,7 +62,7 @@ assertNoNewWarnings();
// A multi field query, including _id.
t.find( { _id:0, a:0 } ).itcount();
-assertNewWarning();
+assertNoNewWarnings();
// An unsatisfiable query.
t.find( { _id:0, a:{$in:[]} } ).itcount();
@@ -74,7 +74,7 @@ assertNoNewWarnings();
// Retry a multi field query.
t.find( { _id:0, a:0 } ).itcount();
-assertNewWarning();
+assertNoNewWarnings();
// Warnings should not be printed when an index is added on _id.
t.ensureIndex( { _id:1 } );