summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authoralabid <alabidan@gmail.com>2015-02-05 17:07:27 -0500
committeralabid <alabidan@gmail.com>2015-02-11 17:49:21 -0500
commit9e670bc3b3039aba39db26066e44facb0851a5ed (patch)
tree7249dad6b619796a6ef54d99e4f9646f2b353f22 /jstests
parent49a07efe7e127603f4e9c90cbe13df2dd819b97a (diff)
downloadmongo-9e670bc3b3039aba39db26066e44facb0851a5ed.tar.gz
SERVER-16648 add cluster argument to setup and teardown functions
Diffstat (limited to 'jstests')
-rw-r--r--jstests/concurrency/fsm_workloads/collmod_separate_collections.js2
-rw-r--r--jstests/concurrency/fsm_workloads/plan_cache_drop_database.js4
-rw-r--r--jstests/concurrency/fsm_workloads/update_check_index.js4
3 files changed, 5 insertions, 5 deletions
diff --git a/jstests/concurrency/fsm_workloads/collmod_separate_collections.js b/jstests/concurrency/fsm_workloads/collmod_separate_collections.js
index 6802ee72883..8736fcaf74d 100644
--- a/jstests/concurrency/fsm_workloads/collmod_separate_collections.js
+++ b/jstests/concurrency/fsm_workloads/collmod_separate_collections.js
@@ -25,7 +25,7 @@ var $config = extendWorkload($config, function($config, $super) {
init: { collMod: 1 }
}, $super.transitions);
- $config.setup = function setup(db, collName) {
+ $config.setup = function setup(db, collName, cluster) {
// no-op: since the init state is used to setup
// the separate collections on a per-thread basis.
};
diff --git a/jstests/concurrency/fsm_workloads/plan_cache_drop_database.js b/jstests/concurrency/fsm_workloads/plan_cache_drop_database.js
index 19da2dcbf88..f75b7e3c77f 100644
--- a/jstests/concurrency/fsm_workloads/plan_cache_drop_database.js
+++ b/jstests/concurrency/fsm_workloads/plan_cache_drop_database.js
@@ -73,12 +73,12 @@ var $config = (function() {
dropDB: { count: 0.95, dropDB: 0.05 }
};
- function setup(db, collName) {
+ function setup(db, collName, cluster) {
var myDB = db.getSiblingDB(this.dbName);
populateData(myDB, collName);
}
- function teardown(db, collName) {
+ function teardown(db, collName, cluster) {
var myDB = db.getSiblingDB(this.dbName);
// We can't assert anything about the dropDatabase return value because
diff --git a/jstests/concurrency/fsm_workloads/update_check_index.js b/jstests/concurrency/fsm_workloads/update_check_index.js
index 1f7ba38c1e0..a7b71b98848 100644
--- a/jstests/concurrency/fsm_workloads/update_check_index.js
+++ b/jstests/concurrency/fsm_workloads/update_check_index.js
@@ -24,7 +24,7 @@ var $config = (function() {
multiUpdate: { multiUpdate: 1.0 }
};
- function setup(db, collName) {
+ function setup(db, collName, cluster) {
assertAlways.commandWorked(db[collName].ensureIndex({a: 1}));
assertAlways.commandWorked(db[collName].ensureIndex({b: 1}));
assertAlways.commandWorked(db[collName].ensureIndex({c: 1}));
@@ -37,7 +37,7 @@ var $config = (function() {
// Asserts that the number of index entries for all three entries matches the number of docs
// in the collection. This condition should always be true for non-multikey indices. If it is
// not true, then the index has been corrupted.
- function teardown(db, collName) {
+ function teardown(db, collName, cluster) {
assertWhenOwnColl(function() {
var numIndexKeys = db[collName].find({}, {_id: 0, a: 1}).hint({a: 1}).itcount();
var numDocs = db[collName].find().itcount();