blob: df06a49fa8cefba8297fe1b63ccccb0df03e9bc7 (
plain)
1
2
3
4
5
6
7
|
mydb = db.getSisterDB( "repair_test1" )
t = mydb.jstests_repair;
t.drop();
t.save( { i:1 } );
assert.commandWorked( mydb.repairDatabase() );
v = t.validate();
assert( v.valid , "not valid! " + tojson( v ) );
|