summaryrefslogtreecommitdiff
path: root/shell/db.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-10-07 12:43:24 -0400
committerEliot Horowitz <eliot@10gen.com>2009-10-07 12:43:24 -0400
commit498169e9e386f21e7ee83a9b900cae24dffa3d4b (patch)
treec5d0325104bf91b99be7621413a9a185fff4cc21 /shell/db.js
parentb733978054f7b2cc2505e7a7e554d00b1f471663 (diff)
downloadmongo-498169e9e386f21e7ee83a9b900cae24dffa3d4b.tar.gz
got rid of meminfo and timeinfo and replace with serverStatus
Diffstat (limited to 'shell/db.js')
-rw-r--r--shell/db.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/shell/db.js b/shell/db.js
index 40e92e3f64d..2aabbe31141 100644
--- a/shell/db.js
+++ b/shell/db.js
@@ -605,6 +605,10 @@ DB.prototype.serverBuildInfo = function(){
return this._adminCommand( "buildinfo" );
}
+DB.prototype.serverStatus = function(){
+ return this._adminCommand( "serverStatus" );
+}
+
DB.prototype.version = function(){
return this.serverBuildInfo().version;
}