summaryrefslogtreecommitdiff
path: root/src/mongo/db/concurrency/locker.h
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-10-24 15:27:56 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-10-24 15:28:14 -0400
commita0782a32be8aad87df56c4dc8bb1fe8b3694c1d6 (patch)
tree35fa7652c97e708a69e0342be975aa30f7f6f105 /src/mongo/db/concurrency/locker.h
parentc86905bd4d22f14656b3b058ab0bf4880f3c7258 (diff)
downloadmongo-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.h8
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