summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/perftests.cpp
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-03-26 10:13:36 -0400
committerAndrew Morrow <acm@mongodb.com>2015-03-27 11:37:29 -0400
commit67cf6c0d51bf59a1933325c793b02c220283f331 (patch)
tree5ff86583c096e26b702c6754c4e41330061cc139 /src/mongo/dbtests/perftests.cpp
parent1fc9d37170bcf29068f02cc2898436281fe16d6a (diff)
downloadmongo-67cf6c0d51bf59a1933325c793b02c220283f331.tar.gz
SERVER-11020 Don't overload the meaning of _DEBUG, use our own debug macro
Diffstat (limited to 'src/mongo/dbtests/perftests.cpp')
-rw-r--r--src/mongo/dbtests/perftests.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/dbtests/perftests.cpp b/src/mongo/dbtests/perftests.cpp
index e7d05a93bfb..9fac2024ca7 100644
--- a/src/mongo/dbtests/perftests.cpp
+++ b/src/mongo/dbtests/perftests.cpp
@@ -126,7 +126,7 @@ namespace PerfTests {
static boost::shared_ptr<DBClientConnection> conn;
static string _perfhostname;
void pstatsConnect() {
- // no writing to perf db if _DEBUG
+ // no writing to perf db if this is a debug build
DEV return;
const char *fn = "../../settings.py";
@@ -314,7 +314,7 @@ namespace PerfTests {
int howLong() {
int hlm = howLongMillis();
DEV {
- // don't run very long with _DEBUG - not very meaningful anyway on that build
+ // don't run very long with in debug mode - not very meaningful anyway on that build
hlm = min(hlm, 500);
}
return hlm;
@@ -1117,7 +1117,7 @@ namespace PerfTests {
c->findOne(ns(), q);
}
void post() {
-#if !defined(_DEBUG)
+#if !defined(MONGO_CONFIG_DEBUG_BUILD)
verify( client()->count(ns()) > 50 );
#endif
}