diff options
author | Kevin Matulef <matulef@gmail.com> | 2012-08-02 08:14:22 -0400 |
---|---|---|
committer | Kevin Matulef <matulef@gmail.com> | 2012-08-02 08:14:22 -0400 |
commit | b202965c2aa985232699b059c7135dd64f09700e (patch) | |
tree | 46990d7966f7631c09d4c7dc8e87b99db999b51d /jstests/replsets/capped_id.js | |
parent | af67eafd77bb5d77218dae510c5241d410f0337f (diff) | |
download | mongo-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/replsets/capped_id.js')
-rw-r--r-- | jstests/replsets/capped_id.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/replsets/capped_id.js b/jstests/replsets/capped_id.js index 3cd51a617b4..ef700e48959 100644 --- a/jstests/replsets/capped_id.js +++ b/jstests/replsets/capped_id.js @@ -101,8 +101,8 @@ for( testnum=0; testnum < numtests; testnum++ ){ slave2db.system.indexes.find().forEach(printjson); print(""); - // insure each slave has _id index, but not master - assert.eq( 0 , + // insure all nodes have _id index + assert.eq( 1 , masterdb.system.indexes.find( { key:{"_id" : 1}, ns: dbname + "." + coll } ).count() , "master has an _id index on capped collection"); assert.eq( 1 , |