diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-11-19 10:07:59 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-11-19 10:07:59 -0500 |
commit | 420a7e51f07a92e35d4c6c78358b974ad0e6b582 (patch) | |
tree | 30e33d7b5b6640a8d0a6351a5289b594fc226131 /shell/db.js | |
parent | 934525f8b160422ec2f1035ea00b3fa93b0cf22b (diff) | |
download | mongo-420a7e51f07a92e35d4c6c78358b974ad0e6b582.tar.gz |
db.printShardingStatus
Diffstat (limited to 'shell/db.js')
-rw-r--r-- | shell/db.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/db.js b/shell/db.js index 8ea9c4c1de4..841d2f0d3db 100644 --- a/shell/db.js +++ b/shell/db.js @@ -261,6 +261,7 @@ DB.prototype.help = function() { print("\tdb.printCollectionStats()" ); print("\tdb.printReplicationInfo()"); print("\tdb.printSlaveReplicationInfo()"); + print("\tdb.printShardingStatus()"); print("\tdb.removeUser(username)"); print("\tdb.repairDatabase()"); print("\tdb.resetError()"); @@ -620,3 +621,7 @@ DB.prototype.serverStatus = function(){ DB.prototype.version = function(){ return this.serverBuildInfo().version; } + +DB.prototype.printShardingStatus = function(){ + printShardingStatus( this.getSisterDB( "config" ) ); +} |