From c927a61213f5e1e80d7535b6cb1a16f23a6d0b98 Mon Sep 17 00:00:00 2001 From: Tess Avitabile Date: Wed, 14 Feb 2018 13:33:44 -0500 Subject: SERVER-33004 Add two-phase locking for shared locks for snapshot reads --- src/mongo/db/concurrency/locker.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mongo/db/concurrency/locker.h') diff --git a/src/mongo/db/concurrency/locker.h b/src/mongo/db/concurrency/locker.h index a8690ce2d37..3e70d000fe8 100644 --- a/src/mongo/db/concurrency/locker.h +++ b/src/mongo/db/concurrency/locker.h @@ -89,6 +89,11 @@ public: */ virtual stdx::thread::id getThreadId() const = 0; + /** + * Indicate that shared locks should participate in two-phase locking for this Locker instance. + */ + virtual void setSharedLocksShouldTwoPhaseLock(bool sharedLocksShouldTwoPhaseLock) = 0; + /** * This should be the first method invoked for a particular Locker object. It acquires the * Global lock in the specified mode and effectively indicates the mode of the operation. -- cgit v1.2.1