summaryrefslogtreecommitdiff
path: root/shell/servers.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-08-24 10:10:11 -0400
committerEliot Horowitz <eliot@10gen.com>2009-08-24 10:10:11 -0400
commitfd2155d554acbe12da09c525be1da108ab1dcbfc (patch)
tree0b63c9e7a8a8badbfad68c4cd3b63514c7cb75f1 /shell/servers.js
parentb078f98360c7ce7f4699c8938cc4fd77d0e71b97 (diff)
downloadmongo-fd2155d554acbe12da09c525be1da108ab1dcbfc.tar.gz
fallotu from removing methods from Array
Diffstat (limited to 'shell/servers.js')
-rw-r--r--shell/servers.js8
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;