Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

don't repair a massive db for simple test

  • Loading branch information...
commit 286612a40cdb6000cda7efd19fe0c97c91bba10c 1 parent 7b911f2
@erh erh authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 jstests/repair.js
View
5 jstests/repair.js
@@ -1,6 +1,7 @@
-t = db.jstests_repair;
+mydb = db.getSisterDB( "repair_test1" )
+t = mydb.jstests_repair;
t.drop();
t.save( { i:1 } );
-assert.commandWorked( db.repairDatabase() );
+assert.commandWorked( mydb.repairDatabase() );
v = t.validate();
assert( v.valid , "not valid! " + tojson( v ) );
Please sign in to comment.
Something went wrong with that request. Please try again.