diff options
Diffstat (limited to 'jstests/exists9.js')
-rw-r--r-- | jstests/exists9.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/jstests/exists9.js b/jstests/exists9.js index 9336bcaaa8b..66378d1b424 100644 --- a/jstests/exists9.js +++ b/jstests/exists9.js @@ -25,8 +25,7 @@ assert.eq( 1, t.count( {a:{$exists:false}} ) ); t.ensureIndex( {a:1} ); assert.eq( 1, t.find( {a:{$exists:true}} ).hint( {a:1} ).itcount() ); assert.eq( 1, t.find( {a:{$exists:false}} ).hint( {a:1} ).itcount() ); -// An {$exists: false} requires a collection scan. -assert.eq( 2, t.find( {a:{$exists:false}} ).hint( {a:1} ).explain().nscanned ); +assert.eq( 1, t.find( {a:{$exists:false}} ).hint( {a:1} ).explain().nscanned ); t.drop(); |