diff options
author | dwight <dwight@dwights-MacBook-Pro.local> | 2011-05-04 22:40:32 -0400 |
---|---|---|
committer | dwight <dwight@dwights-MacBook-Pro.local> | 2011-05-04 22:40:32 -0400 |
commit | 00e3f424a1dfc667ab38eee2cc1883bd4b2aed7e (patch) | |
tree | 08f010f85f9fdf77de7ead9c4bba66de18b73bb0 /jstests/dur | |
parent | 9dbe9864dbfa26db8b20426a47eb56e149bf6f8f (diff) | |
download | mongo-00e3f424a1dfc667ab38eee2cc1883bd4b2aed7e.tar.gz |
buildbot
Diffstat (limited to 'jstests/dur')
-rw-r--r-- | jstests/dur/dropdb_race.js | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/jstests/dur/dropdb_race.js b/jstests/dur/dropdb_race.js deleted file mode 100644 index e4252f157b0..00000000000 --- a/jstests/dur/dropdb_race.js +++ /dev/null @@ -1,44 +0,0 @@ -// test dropping a db with simultaneous commits - -m = db.getMongo(); -baseName = "jstests_dur_droprace"; -d = db.getSisterDB(baseName); -t = d.foo; - -assert(d.adminCommand({ setParameter: 1, syncdelay: 5 }).ok); - -var s = 0; - -var start = new Date(); - -for (var pass = 0; pass < 100; pass++) { - if (pass % 2 == 0) { - // sometimes wait for create db first, to vary the timing of things - t.insert({}); - if( pass % 4 == 0 ) - d.runCommand({getLastError:1,j:1}); - else - d.getLastError(); - } - t.insert({ x: 1 }); - t.insert({ x: 3 }); - t.ensureIndex({ x: 1 }); - sleep(s); - if (pass % 37 == 0) - d.adminCommand("closeAllDatabases"); - else if (pass % 13 == 0) - t.drop(); - else if (pass % 17 == 0) - t.dropIndexes(); - else - d.dropDatabase(); - if (pass % 7 == 0) - d.runCommand({getLastError:1,j:1}); - d.getLastError(); - s = (s + 1) % 25; - print(pass); - if ((new Date()) - start > 60000) { - print("stopping early"); - break; - } -} |