summaryrefslogtreecommitdiff
path: root/src/mongo/s
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s')
-rw-r--r--src/mongo/s/chunk.cpp4
-rw-r--r--src/mongo/s/version_mongos.cpp4
2 files changed, 5 insertions, 3 deletions
diff --git a/src/mongo/s/chunk.cpp b/src/mongo/s/chunk.cpp
index ea3989a8508..a8e62442bf1 100644
--- a/src/mongo/s/chunk.cpp
+++ b/src/mongo/s/chunk.cpp
@@ -30,6 +30,8 @@
#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kSharding
+#include "mongo/config.h"
+
#include "mongo/platform/basic.h"
#include "mongo/s/chunk.h"
@@ -603,7 +605,7 @@ namespace {
<< " shard: " << toString()
<< " into " << (splitCount + 1)
<< " (splitThreshold " << splitThreshold << ")"
-#ifdef _DEBUG
+#ifdef MONGO_CONFIG_DEBUG_BUILD
<< " size: " << getPhysicalSize() // slow - but can be useful when debugging
#endif
<< ( res["shouldMigrate"].eoo() ? "" : (string)" (migrate suggested" +
diff --git a/src/mongo/s/version_mongos.cpp b/src/mongo/s/version_mongos.cpp
index e724bf23d07..1515a5aef86 100644
--- a/src/mongo/s/version_mongos.cpp
+++ b/src/mongo/s/version_mongos.cpp
@@ -49,7 +49,7 @@ namespace mongo {
ProcessId::getCurrent() << " port=" << serverGlobalParams.port <<
( sizeof(int*) == 4 ? " 32" : " 64" ) << "-bit host=" << getHostNameCached() <<
" (--help for usage)" << std::endl;
- DEV std::cout << "_DEBUG build" << std::endl;
+ DEV std::cout << "DEBUG build" << std::endl;
std::cout << "git version: " << gitVersion() << std::endl;
std::cout << openSSLVersion("OpenSSL version: ") << std::endl;
std::cout << "build sys info: " << sysInfo() << std::endl;
@@ -59,7 +59,7 @@ namespace mongo {
ProcessId::getCurrent() << " port=" << serverGlobalParams.port <<
( sizeof( int* ) == 4 ? " 32" : " 64" ) << "-bit host=" << getHostNameCached() <<
" (--help for usage)" << std::endl;
- DEV log() << "_DEBUG build" << std::endl;
+ DEV log() << "DEBUG build" << std::endl;
logProcessDetails();
}
}