0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 09:32:32 +01:00
mongodb/jstests/repair.js

7 lines
164 B
JavaScript
Raw Normal View History

2009-05-09 01:43:22 +02:00
t = db.jstests_repair;
t.drop();
t.save( { i:1 } );
2010-06-08 20:50:45 +02:00
assert.commandWorked( db.repairDatabase() );
2009-06-04 19:46:22 +02:00
v = t.validate();
assert( v.valid , "not valid! " + tojson( v ) );