diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-10-24 15:27:56 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-10-24 15:28:14 -0400 |
commit | a0782a32be8aad87df56c4dc8bb1fe8b3694c1d6 (patch) | |
tree | 35fa7652c97e708a69e0342be975aa30f7f6f105 /src/mongo/db/concurrency/locker.h | |
parent | c86905bd4d22f14656b3b058ab0bf4880f3c7258 (diff) | |
download | mongo-a0782a32be8aad87df56c4dc8bb1fe8b3694c1d6.tar.gz |
SERVER-15541 Simplify the save/restore lock state code
There is no need to keep around the recursion counts, because yielding
only happens at the top-most level.
Diffstat (limited to 'src/mongo/db/concurrency/locker.h')
-rw-r--r-- | src/mongo/db/concurrency/locker.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/db/concurrency/locker.h b/src/mongo/db/concurrency/locker.h index a71efe6927a..c2acc48133f 100644 --- a/src/mongo/db/concurrency/locker.h +++ b/src/mongo/db/concurrency/locker.h @@ -159,20 +159,12 @@ namespace mongo { // The global lock is handled differently from all other locks. LockMode globalMode; - // One can acquire the global lock repeatedly. - unsigned globalRecursiveCount; - struct OneLock { // What lock resource is held? ResourceId resourceId; // In what mode is it held? LockMode mode; - - // What's the recursive count of this lock? Note that we don't store any state - // about how we got this lock (eg upgrade), just how many times we've locked it - // in this mode. - unsigned recursiveCount; }; // The non-global non-flush locks held, sorted by granularity. That is, locks[i] is |