diff options
author | Mathias Stearn <redbeard0531@gmail.com> | 2010-05-24 11:09:10 -0400 |
---|---|---|
committer | Mathias Stearn <redbeard0531@gmail.com> | 2010-05-24 11:11:31 -0400 |
commit | b4774a4fcdd7e9febf3adc21ed1462827630f1e3 (patch) | |
tree | dda235977baf8833a1996ebb8dd7432f8ff95094 | |
parent | c9181b253b3216e496633dfe53f8078894a1df4c (diff) | |
download | mongo-b4774a4fcdd7e9febf3adc21ed1462827630f1e3.tar.gz |
Add version and bits to db.serverStatus()
(cherry picked from commit d086ff38d31ef7e66fef725ebe7b527d9506c328)
-rw-r--r-- | db/dbcommands.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/db/dbcommands.cpp b/db/dbcommands.cpp index 46c2e4d5e75..85c695d8b02 100644 --- a/db/dbcommands.cpp +++ b/db/dbcommands.cpp @@ -317,9 +317,10 @@ namespace mongo { bool authed = cc().getAuthenticationInfo()->isAuthorizedReads("admin"); + result.append("version", versionString); result.append("uptime",(double) (time(0)-started)); result.appendDate( "localTime" , jsTime() ); - + { BSONObjBuilder t; @@ -339,6 +340,8 @@ namespace mongo { BSONObjBuilder t( result.subobjStart( "mem" ) ); + t.append("bits", ( sizeof(int*) == 4 ? 32 : 64 ) ); + ProcessInfo p; if ( p.supported() ){ t.appendNumber( "resident" , p.getResidentSize() ); |