summaryrefslogtreecommitdiff
path: root/jstests/explain4.js
diff options
context:
space:
mode:
authorAlberto Lerner <alerner@10gen.com>2013-10-10 18:27:49 -0400
committerAlberto Lerner <alerner@10gen.com>2013-10-10 19:17:23 -0400
commit5cdcedd9902edb97985a21df3b4e6f8a2cd483cf (patch)
tree73198b72072bbf017738b721255cdfdbaee92761 /jstests/explain4.js
parentc7cc79f0cae037bd1d94ed2693dd9bc345c5433d (diff)
downloadmongo-5cdcedd9902edb97985a21df3b4e6f8a2cd483cf.tar.gz
SERVER-10471 Note differences in test behavior between new and old query systems
Diffstat (limited to 'jstests/explain4.js')
-rw-r--r--jstests/explain4.js14
1 files changed, 9 insertions, 5 deletions
diff --git a/jstests/explain4.js b/jstests/explain4.js
index dd3dc55d2e7..c9b0d611e54 100644
--- a/jstests/explain4.js
+++ b/jstests/explain4.js
@@ -15,12 +15,14 @@ function checkField( explain, name, value ) {
function checkNonCursorPlanFields( explain, matches, n ) {
checkField( explain, "n", n );
checkField( explain, "nscannedObjects", matches );
- checkField( explain, "nscanned", matches );
+ checkField( explain, "nscanned", matches );
}
function checkPlanFields( explain, matches, n ) {
checkField( explain, "cursor", "BasicCursor" );
- checkField( explain, "indexBounds", {} );
+ // QUERY MIGRATION
+ // index related fields do not appear in non-indexed plan
+ //checkField( explain, "indexBounds", {} );
checkNonCursorPlanFields( explain, matches, n );
}
@@ -33,14 +35,16 @@ function checkFields( matches, sort, limit ) {
cursor.limit( limit );
}
explain = cursor.explain( true );
-// printjson( explain );
+ // printjson( explain );
checkPlanFields( explain, matches, matches > 0 ? 1 : 0 );
checkField( explain, "scanAndOrder", sort );
checkField( explain, "millis" );
checkField( explain, "nYields" );
checkField( explain, "nChunkSkips", 0 );
- checkField( explain, "isMultiKey", false );
- checkField( explain, "indexOnly", false );
+ // QUERY MIGRATION
+ // index related fields do not appear in non-indexed plan
+ // checkField( explain, "isMultiKey", false );
+ // checkField( explain, "indexOnly", false );
checkField( explain, "server" );
checkField( explain, "allPlans" );
explain.allPlans.forEach( function( x ) { checkPlanFields( x, matches, matches ); } );