diff options
author | Dianna Hohensee <dianna.hohensee@10gen.com> | 2016-02-26 12:09:18 -0500 |
---|---|---|
committer | Dianna Hohensee <dianna.hohensee@10gen.com> | 2016-02-26 13:11:06 -0500 |
commit | 4f3f65608ef6223c7b97439f7fcec0e4e864cce0 (patch) | |
tree | cfe1da6067c2dcc3557c15a5a2eaeb6bd43531f3 /src | |
parent | 0efb73015daca3cbfcdfca3a8e06087bcfed3d6a (diff) | |
download | mongo-4f3f65608ef6223c7b97439f7fcec0e4e864cce0.tar.gz |
SERVER-22822 prevent mongod stepdown in balance_repl.js and sharding_rs2.js
(cherry picked from commit 90b12248502592281f430890c838b2834d11d1b3)
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/shell/shardingtest.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mongo/shell/shardingtest.js b/src/mongo/shell/shardingtest.js index 64f7349b108..29f843e30dc 100644 --- a/src/mongo/shell/shardingtest.js +++ b/src/mongo/shell/shardingtest.js @@ -178,6 +178,9 @@ var ShardingTest = function(params) { return this.s.getDB(name); }; + /* + * Gets the _id of the primary shard of the database 'dbname', e.g., 'test-rs0' + */ this.getServerName = function(dbname) { var x = this.config.databases.findOne({ _id : "" + dbname }); if (x) { |