summaryrefslogtreecommitdiff
path: root/src/mongo/db/concurrency
diff options
context:
space:
mode:
authorBilly Donahue <billy.donahue@mongodb.com>2019-08-23 17:22:55 +0000
committerevergreen <evergreen@mongodb.com>2019-08-23 17:22:55 +0000
commit441871aa17a4c77175c8c6d6c8ac94eadecbfd33 (patch)
tree540f02926f1b1ad19f3f960706beaeb921fa4408 /src/mongo/db/concurrency
parentd768cef877ff502968479905a1da8f65078841d7 (diff)
downloadmongo-441871aa17a4c77175c8c6d6c8ac94eadecbfd33.tar.gz
SERVER-43010 remove DEV and MONGO_DEV macros
Diffstat (limited to 'src/mongo/db/concurrency')
-rw-r--r--src/mongo/db/concurrency/lock_state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/concurrency/lock_state.cpp b/src/mongo/db/concurrency/lock_state.cpp
index 315a7389e04..a4df3cf77bd 100644
--- a/src/mongo/db/concurrency/lock_state.cpp
+++ b/src/mongo/db/concurrency/lock_state.cpp
@@ -856,7 +856,7 @@ LockResult LockerImpl::lockBegin(OperationContext* opCtx, ResourceId resId, Lock
} else if (resType != RESOURCE_MUTEX) {
// This is all sanity checks that the global locks are always be acquired
// before any other lock has been acquired and they must be in sync with the nesting.
- DEV {
+ if (kDebugBuild) {
const LockRequestsMap::Iterator itGlobal = _requests.find(resourceIdGlobal);
invariant(itGlobal->recursiveCount > 0);
invariant(itGlobal->mode != MODE_NONE);