diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-09-11 16:19:34 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2014-09-11 16:19:34 -0400 |
commit | b6e5d1e2af49ebb2edfb6522ba744d344b73c4f6 (patch) | |
tree | 00a1e5b869e0a8571055b401a8e6aa44ad53fe2e /src | |
parent | b47b91801021f5125fbcee07bf827b237ad1b4ee (diff) | |
download | mongo-b6e5d1e2af49ebb2edfb6522ba744d344b73c4f6.tar.gz |
SERVER-14668 make getLockMode/isLockHeldForMode pure virtual
Diffstat (limited to 'src')
-rw-r--r-- | src/mongo/db/concurrency/locker.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/concurrency/locker.h b/src/mongo/db/concurrency/locker.h index 2992ed7d3b9..1b89f0c4f3f 100644 --- a/src/mongo/db/concurrency/locker.h +++ b/src/mongo/db/concurrency/locker.h @@ -87,8 +87,9 @@ namespace mongo { * For example isLockHeldForMode will return true for MODE_S, if MODE_X is already held, * because MODE_X covers MODE_S. */ - virtual newlm::LockMode getLockMode(const newlm::ResourceId& resId) const; - virtual bool isLockHeldForMode(const newlm::ResourceId& resId, newlm::LockMode mode) const; + virtual newlm::LockMode getLockMode(const newlm::ResourceId& resId) const = 0; + virtual bool isLockHeldForMode(const newlm::ResourceId& resId, + newlm::LockMode mode) const = 0; // // These methods are legacy from LockState and will eventually go away or be converted to |