summaryrefslogtreecommitdiff
path: root/jstests/concurrency
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2015-11-19 17:53:44 -0500
committerJudah Schvimer <judah@mongodb.com>2015-11-19 17:53:44 -0500
commit962228de85d7361e7e578c2266c9f1d603209426 (patch)
tree44609ec8be38c76717a88b6f3ea2cfc0e3e9e6a9 /jstests/concurrency
parent9cb090a45e6bdaf45a8738504915c9b3b16b055e (diff)
downloadmongo-962228de85d7361e7e578c2266c9f1d603209426.tar.gz
SERVER-21564 simplify shardCollection in fsm's cluster.js
Diffstat (limited to 'jstests/concurrency')
-rw-r--r--jstests/concurrency/fsm_libs/cluster.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/jstests/concurrency/fsm_libs/cluster.js b/jstests/concurrency/fsm_libs/cluster.js
index c626caa5931..66f89047075 100644
--- a/jstests/concurrency/fsm_libs/cluster.js
+++ b/jstests/concurrency/fsm_libs/cluster.js
@@ -149,10 +149,6 @@ var Cluster = function(options) {
conn = st.s; // mongos
- this.shardCollection = function() {
- st.shardColl.apply(st, arguments);
- };
-
this.teardown = function teardown() {
options.teardownFunctions.mongod.forEach(this.executeOnMongodNodes);
options.teardownFunctions.mongos.forEach(this.executeOnMongosNodes);
@@ -319,7 +315,7 @@ var Cluster = function(options) {
this.shardCollection = function shardCollection() {
assert(this.isSharded(), 'cluster is not sharded');
- throw new Error('cluster has not been initialized yet');
+ st.shardColl.apply(st, arguments);
};
// Provide a serializable form of the cluster for use in workload states. This