diff options
author | Eric Milkie <milkie@10gen.com> | 2015-03-06 11:50:05 -0500 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2015-03-16 09:08:06 -0400 |
commit | d7563a168a8862e5c50f32829d17b628305a93ad (patch) | |
tree | 0dc69faf211892fa0724ac677f3da009289d87e6 /src/mongo/util/background.cpp | |
parent | 629eb083a2094b7a096b29d66504a8f34e1a1d60 (diff) | |
download | mongo-d7563a168a8862e5c50f32829d17b628305a93ad.tar.gz |
SERVER-17601 replace global variable debug and enum DEBUG_BUILD
Diffstat (limited to 'src/mongo/util/background.cpp')
-rw-r--r-- | src/mongo/util/background.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/background.cpp b/src/mongo/util/background.cpp index c98e674ccc8..d1ad927bb8f 100644 --- a/src/mongo/util/background.cpp +++ b/src/mongo/util/background.cpp @@ -323,7 +323,7 @@ namespace mongo { void PeriodicTaskRunner::run() { // Use a shorter cycle time in debug mode to help catch race conditions. - const size_t waitMillis = (debug ? 5 : 60) * 1000; + const size_t waitMillis = (kDebugBuild ? 5 : 60) * 1000; const stdx::function<bool()> predicate = stdx::bind( &PeriodicTaskRunner::_isShutdownRequested, this ); |