0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/repair.js
2010-06-08 11:50:45 -07:00

7 lines
164 B
JavaScript

t = db.jstests_repair;
t.drop();
t.save( { i:1 } );
assert.commandWorked( db.repairDatabase() );
v = t.validate();
assert( v.valid , "not valid! " + tojson( v ) );