summaryrefslogtreecommitdiff
path: root/jstests/index_check1.js
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-04-20 18:40:38 -0400
committerAaron <aaron@10gen.com>2009-04-20 18:40:38 -0400
commitb1cc3f6223bb2a1f12dbd8c2712267ae01cb511b (patch)
tree6700129093b51fd1f1d20124b608b9a246f5fd95 /jstests/index_check1.js
parent7d85516931e598348d61b86ec1a256ba388234ce (diff)
downloadmongo-b1cc3f6223bb2a1f12dbd8c2712267ae01cb511b.tar.gz
add _id index automatically, don't allow it to be deleted
Diffstat (limited to 'jstests/index_check1.js')
-rw-r--r--jstests/index_check1.js8
1 files changed, 0 insertions, 8 deletions
diff --git a/jstests/index_check1.js b/jstests/index_check1.js
index b84419d7fd0..ec2068e27cb 100644
--- a/jstests/index_check1.js
+++ b/jstests/index_check1.js
@@ -5,10 +5,6 @@ assert(db.system.namespaces.find({name:/somecollection/}).length() == 0, 1);
db.somecollection.save({a:1});
-assert(db.system.namespaces.find({name:/somecollection/}).length() == 1, 2);
-
-db.somecollection.ensureIndex({a:1});
-
var z = db.system.namespaces.find({name:/somecollection/}).length();
assert( z >= 1 , 3 );
@@ -19,10 +15,6 @@ db.somecollection.drop();
assert(db.system.namespaces.find({name:/somecollection/}).length() == 0, 4);
-db.somecollection.save({a:1});
-
-assert(db.system.namespaces.find({name:/somecollection/}).length() == 1, 5);
-
db.somecollection.ensureIndex({a:1});
var x = db.system.namespaces.find({name:/somecollection/}).length();