diff options
author | Andrew Morrow <acm@mongodb.com> | 2015-03-26 10:13:36 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2015-03-27 11:37:29 -0400 |
commit | 67cf6c0d51bf59a1933325c793b02c220283f331 (patch) | |
tree | 5ff86583c096e26b702c6754c4e41330061cc139 /src/mongo/dbtests/threadedtests.cpp | |
parent | 1fc9d37170bcf29068f02cc2898436281fe16d6a (diff) | |
download | mongo-67cf6c0d51bf59a1933325c793b02c220283f331.tar.gz |
SERVER-11020 Don't overload the meaning of _DEBUG, use our own debug macro
Diffstat (limited to 'src/mongo/dbtests/threadedtests.cpp')
-rw-r--r-- | src/mongo/dbtests/threadedtests.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/dbtests/threadedtests.cpp b/src/mongo/dbtests/threadedtests.cpp index 8085be0534e..74044046855 100644 --- a/src/mongo/dbtests/threadedtests.cpp +++ b/src/mongo/dbtests/threadedtests.cpp @@ -31,6 +31,8 @@ #define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kCommand +#include "mongo/config.h" + #include "mongo/platform/basic.h" #include <boost/thread.hpp> @@ -94,7 +96,7 @@ namespace ThreadedTests { const int nthr=135; #endif class MongoMutexTest : public ThreadedTest<nthr> { -#if defined(_DEBUG) +#if defined(MONGO_CONFIG_DEBUG_BUILD) enum { N = 2000 }; #else enum { N = 4000/*0*/ }; @@ -531,7 +533,7 @@ namespace ThreadedTests { if( t.millis() > 20 ) { #endif DEV { - // a _DEBUG buildbot might be slow, try to avoid false positives + // a debug buildbot might be slow, try to avoid false positives mongo::unittest::log() << "warning lock upgrade was slow " << t.millis() << endl; } |