mirror of
https://github.com/mongodb/mongo.git
synced 2024-12-01 09:32:32 +01:00
7 lines
164 B
JavaScript
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 ) );
|