summaryrefslogtreecommitdiff
path: root/jstests/libs/csrs_upgrade_util.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/libs/csrs_upgrade_util.js')
-rw-r--r--jstests/libs/csrs_upgrade_util.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/jstests/libs/csrs_upgrade_util.js b/jstests/libs/csrs_upgrade_util.js
index d865b6fee54..411e8b290fa 100644
--- a/jstests/libs/csrs_upgrade_util.js
+++ b/jstests/libs/csrs_upgrade_util.js
@@ -68,6 +68,10 @@ var CSRSUpgradeCoordinator = function() {
return st._mongos[n];
};
+ this.getShard = function(n) {
+ return st['shard' + n];
+ };
+
this.getShardName = function(n) {
return shardConfigs[n]._id;
};