summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-09-11 16:19:34 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-09-11 16:19:34 -0400
commitb6e5d1e2af49ebb2edfb6522ba744d344b73c4f6 (patch)
tree00a1e5b869e0a8571055b401a8e6aa44ad53fe2e /src
parentb47b91801021f5125fbcee07bf827b237ad1b4ee (diff)
downloadmongo-b6e5d1e2af49ebb2edfb6522ba744d344b73c4f6.tar.gz
SERVER-14668 make getLockMode/isLockHeldForMode pure virtual
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/concurrency/locker.h5
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