summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-08-28 02:19:06 -0400
committerEliot Horowitz <eliot@10gen.com>2010-08-31 17:17:52 -0400
commitbdfefa42c5ebed0f6c93e7680507889189e860dc (patch)
treee39143727d814f8be9fd79f1c2a03574303a5cc7
parent625b4c4378337435e059e3226ffe64421068f6b1 (diff)
downloadmongo-bdfefa42c5ebed0f6c93e7680507889189e860dc.tar.gz
add if debug is on to buildinfo
-rw-r--r--db/dbcommands_generic.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/db/dbcommands_generic.cpp b/db/dbcommands_generic.cpp
index 627439483a8..340f31cbb63 100644
--- a/db/dbcommands_generic.cpp
+++ b/db/dbcommands_generic.cpp
@@ -60,6 +60,13 @@ namespace mongo {
bool run(const string& dbname, BSONObj& jsobj, string& errmsg, BSONObjBuilder& result, bool fromRepl ){
result << "version" << versionString << "gitVersion" << gitVersion() << "sysInfo" << sysInfo();
result << "bits" << ( sizeof( int* ) == 4 ? 32 : 64 );
+ result.appendBool( "debug" ,
+#ifdef _DEBUG
+ true
+#else
+ false
+#endif
+ );
return true;
}
} cmdBuildInfo;