summaryrefslogtreecommitdiff
path: root/src/mongo/db/concurrency
diff options
context:
space:
mode:
authorSuganthi Mani <suganthi.mani@mongodb.com>2019-08-23 20:57:21 +0000
committerevergreen <evergreen@mongodb.com>2019-08-23 20:57:21 +0000
commit1d21a5b64114fe777ee879713552048c0fbba631 (patch)
treefa08f84e28fb566573451f83da24408d788f35fa /src/mongo/db/concurrency
parenta3f144a53afe1f06a2235fd9e910e36c30201d25 (diff)
downloadmongo-1d21a5b64114fe777ee879713552048c0fbba631.tar.gz
SERVER-42947 LockerImpl::saveLockStateAndUnlock should no longer check
for global resource request for skipping the resources that never have to be saved and restored.
Diffstat (limited to 'src/mongo/db/concurrency')
-rw-r--r--src/mongo/db/concurrency/lock_state.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/mongo/db/concurrency/lock_state.cpp b/src/mongo/db/concurrency/lock_state.cpp
index a4df3cf77bd..06f9a78fee2 100644
--- a/src/mongo/db/concurrency/lock_state.cpp
+++ b/src/mongo/db/concurrency/lock_state.cpp
@@ -760,7 +760,6 @@ bool LockerImpl::saveLockStateAndUnlock(Locker::LockSnapshot* stateOut) {
// We should never have to save and restore metadata locks.
invariant(RESOURCE_DATABASE == resType || RESOURCE_COLLECTION == resType ||
- (RESOURCE_GLOBAL == resType && isSharedLockMode(it->mode)) ||
(RESOURCE_PBWM == resType && isSharedLockMode(it->mode)) ||
(RESOURCE_RSTL == resType && it->mode == MODE_IX));