diff options
Diffstat (limited to 'shell/servers.js')
-rw-r--r-- | shell/servers.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/shell/servers.js b/shell/servers.js index 597f26261c1..a038a7dcab5 100644 --- a/shell/servers.js +++ b/shell/servers.js @@ -187,6 +187,14 @@ ShardingTest.prototype.adminCommand = function(cmd){ throw "command " + tojson( cmd ) + " failed: " + tojson( res ); } +ShardingTest.prototype.getShardString = function(){ + return Array.tojson( this.config.shard.find().toArray() , "\n" ); +} + +ShardingTest.prototype.printShards = function(){ + print( this.getShardString() ); +} + MongodRunner = function( port, dbpath, peer, arbiter, extraArgs ) { this.port_ = port; this.dbpath_ = dbpath; |