diff options
-rw-r--r-- | db/dbcommands_generic.cpp | 7 |
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; |