summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/repair2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/repair2.js')
-rw-r--r--jstests/noPassthrough/repair2.js27
1 files changed, 13 insertions, 14 deletions
diff --git a/jstests/noPassthrough/repair2.js b/jstests/noPassthrough/repair2.js
index ec3e1f8a299..58032bd17d4 100644
--- a/jstests/noPassthrough/repair2.js
+++ b/jstests/noPassthrough/repair2.js
@@ -2,30 +2,29 @@
baseName = "jstests_repair2";
-load( "jstests/libs/slow_weekly_util.js" );
-testServer = new SlowWeeklyMongod( baseName );
+load("jstests/libs/slow_weekly_util.js");
+testServer = new SlowWeeklyMongod(baseName);
-t = testServer.getDB( baseName )[ baseName ];
+t = testServer.getDB(baseName)[baseName];
t.drop();
-var awaitShell = startParallelShell( "db = db.getSiblingDB( '" + baseName + "');" +
- "for( i = 0; i < 10; ++i ) { " +
- "db.repairDatabase();" +
- "sleep( 5000 );" +
- " }", testServer.port );
+var awaitShell = startParallelShell("db = db.getSiblingDB( '" + baseName + "');" +
+ "for( i = 0; i < 10; ++i ) { " + "db.repairDatabase();" +
+ "sleep( 5000 );" + " }",
+ testServer.port);
-for( i = 0; i < 30; ++i ) {
+for (i = 0; i < 30; ++i) {
var bulk = t.initializeOrderedBulkOp();
- for( j = 0; j < 5000; ++j ) {
- bulk.insert({ _id: j } );
+ for (j = 0; j < 5000; ++j) {
+ bulk.insert({_id: j});
}
- for( j = 0; j < 5000; ++j ) {
- bulk.find({ _id: j, $isolated: 1 }).remove();
+ for (j = 0; j < 5000; ++j) {
+ bulk.find({_id: j, $isolated: 1}).remove();
}
assert.writeOK(bulk.execute());
- assert.eq( 0, t.count() );
+ assert.eq(0, t.count());
}
awaitShell();