diff options
author | Jason Rassi <rassi@10gen.com> | 2014-07-14 15:35:42 -0400 |
---|---|---|
committer | Jason Rassi <rassi@10gen.com> | 2014-08-19 16:34:02 -0400 |
commit | 1c79f141e8baf1802b93c3ee3ba858373c0594eb (patch) | |
tree | a87085fdc7db33aefd7f009eb0c276c2f1244691 | |
parent | b48cc723f1019669b42b1837b09da886970dc668 (diff) | |
download | mongo-1c79f141e8baf1802b93c3ee3ba858373c0594eb.tar.gz |
SERVER-14284 cursor6.js, update_setOnInsert.js turn profiler off
jstests should not leave profiler enabled at test run end.
(cherry picked from commit 645a67482a480183e2e9b780c9e84f776d40f8f8)
-rw-r--r-- | jstests/core/cursor6.js | 2 | ||||
-rw-r--r-- | jstests/core/update_setOnInsert.js | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/jstests/core/cursor6.js b/jstests/core/cursor6.js index 33944eafd3a..9c50e9ecbb2 100644 --- a/jstests/core/cursor6.js +++ b/jstests/core/cursor6.js @@ -98,3 +98,5 @@ check( false ); check( true ); assert.eq( "BasicCursor", r.find().sort( { a: 1, b: -1, z: 1 } ).hint( { $natural: -1 } ).explain().cursor ); + +db.setProfilingLevel( 0 ); diff --git a/jstests/core/update_setOnInsert.js b/jstests/core/update_setOnInsert.js index e02292f8f95..82a4dce4c27 100644 --- a/jstests/core/update_setOnInsert.js +++ b/jstests/core/update_setOnInsert.js @@ -43,4 +43,5 @@ assert.writeError(res, "$setOnInsert _id.a/b worked" ); res = t.update( {"_id.a": 4} , { $setOnInsert: { "_id": {a:4, b:1} } } , true ); assert.writeError(res, "$setOnInsert _id.a/a+b worked" ); + db.setProfilingLevel( 0 ); |