diff options
author | Jason Rassi <rassi@10gen.com> | 2015-03-23 13:21:31 -0400 |
---|---|---|
committer | Jason Rassi <rassi@10gen.com> | 2015-03-24 16:59:23 -0400 |
commit | d5f0d74d5c4a75a74e1d506ba224e54ee57f9a0b (patch) | |
tree | b562297caa7260cbe685722b46f8a46f19983ca7 /src | |
parent | b17c75a2c0d94db497a7a37e81da7e2343c1da08 (diff) | |
download | mongo-d5f0d74d5c4a75a74e1d506ba224e54ee57f9a0b.tar.gz |
SERVER-17699 LockerImpl<>::getLockerInfo() don't no-op if not locked
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/concurrency/lock_state.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mongo/db/concurrency/lock_state.cpp b/src/mongo/db/concurrency/lock_state.cpp index da799d94be3..ace5c26beee 100644 --- a/src/mongo/db/concurrency/lock_state.cpp +++ b/src/mongo/db/concurrency/lock_state.cpp @@ -502,8 +502,6 @@ namespace { lockerInfo->waitingResource = ResourceId(); lockerInfo->stats.reset(); - if (!isLocked()) return; - _lock.lock(); LockRequestsMap::ConstIterator it = _requests.begin(); while (!it.finished()) { |