0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00
mongodb/jstests/indexd.js

13 lines
201 B
JavaScript

t = db.indexd;
t.drop();
t.save( { a : 1 } );
t.ensureIndex( { a : 1 } );
db.indexd.$_id_.drop();
r = t.drop();
assert.eq( 1 , r.ok , "drop failed: " + tojson( r ) );
//db.indexd.$_id_.remove({});