Permalink
Browse files

using alternate db breaks dur_passthrough in slownightly

  • Loading branch information...
agirbal committed Feb 15, 2012
1 parent f2f0dc6 commit 0e5d68e2ec9e14ad9142e924fd857bab10a0a233
Showing with 6 additions and 0 deletions.
  1. +2 −0 jstests/profile1.js
  2. +2 −0 jstests/profile2.js
  3. +2 −0 jstests/profile3.js
View
@@ -1,6 +1,7 @@
print("profile1.js BEGIN");
// special db so that it can be run in parallel tests
+var stddb = db;
var db = db.getSisterDB("profile1");
try {
@@ -130,4 +131,5 @@ try {
} finally {
// disable profiling for subsequent tests
assert.commandWorked( db.runCommand( {profile:0} ) );
+ db = stddb;
}
View
@@ -1,6 +1,7 @@
print("profile2.js BEGIN");
// special db so that it can be run in parallel tests
+var stddb = db;
var db = db.getSisterDB("profile2");
try {
@@ -20,4 +21,5 @@ try {
} finally {
// disable profiling for subsequent tests
assert.commandWorked( db.runCommand( {profile:0} ) );
+ db = stddb;
}
View
@@ -1,5 +1,6 @@
// special db so that it can be run in parallel tests
+var stddb = db;
var db = db.getSisterDB("profile3");
t = db.profile3;
@@ -35,5 +36,6 @@ try {
}
finally {
db.setProfilingLevel(0);
+ db = stddb;
}

0 comments on commit 0e5d68e

Please sign in to comment.