diff options
author | Geert Bosch <bosch@gnat.com> | 2018-07-08 11:26:02 -0400 |
---|---|---|
committer | Geert Bosch <geert@mongodb.com> | 2018-07-11 10:11:00 -0400 |
commit | c7bd92f7ded5501654989eb9b9a80bbf50d3ec3b (patch) | |
tree | 60724a273bc50960b0ed9afee6e24ad8b92e8e1b /src/mongo/db/concurrency/locker.h | |
parent | 80c7c825a44cf99b17e81f4233445c7ab1927706 (diff) | |
download | mongo-c7bd92f7ded5501654989eb9b9a80bbf50d3ec3b.tar.gz |
SERVER-36011 Remove MMAPv1 lockmanager support
Diffstat (limited to 'src/mongo/db/concurrency/locker.h')
-rw-r--r-- | src/mongo/db/concurrency/locker.h | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/src/mongo/db/concurrency/locker.h b/src/mongo/db/concurrency/locker.h index 816d35831f1..9523bc46e92 100644 --- a/src/mongo/db/concurrency/locker.h +++ b/src/mongo/db/concurrency/locker.h @@ -151,9 +151,8 @@ public: * @param mode Mode in which the global lock should be acquired. Also indicates the intent * of the operation. * - * @return LOCK_OK, if the global lock (and the flush lock, for the MMAP V1 engine) were - * acquired within the specified time bound. Otherwise, the respective failure - * code and neither lock will be acquired. + * @return LOCK_OK, if the global lock was acquired within the specified time bound. Otherwise, + * the failure code and no lock will be acquired. */ virtual LockResult lockGlobal(OperationContext* opCtx, LockMode mode) = 0; virtual LockResult lockGlobal(LockMode mode) = 0; @@ -161,10 +160,10 @@ public: /** * Requests the global lock to be acquired in the specified mode. * - * See the comments for lockBegin/Complete for more information on the semantics. - * The deadline indicates the absolute time point when this lock acquisition will time out, if - * not yet granted. The lockGlobalBegin - * method has a deadline for use with the TicketHolder, if there is one. + * See the comments for lockBegin/Complete for more information on the semantics. The deadline + * indicates the absolute time point when this lock acquisition will time out, if not yet + * granted. The lockGlobalBegin method has a deadline for use with the TicketHolder, if there + * is one. */ virtual LockResult lockGlobalBegin(OperationContext* opCtx, LockMode mode, Date_t deadline) = 0; virtual LockResult lockGlobalBegin(LockMode mode, Date_t deadline) = 0; @@ -177,12 +176,6 @@ public: virtual LockResult lockGlobalComplete(Date_t deadline) = 0; /** - * This method is used only in the MMAP V1 storage engine, otherwise it is a no-op. See the - * comments in the implementation for more details on how MMAP V1 journaling works. - */ - virtual void lockMMAPV1Flush() = 0; - - /** * Decrements the reference count on the global lock. If the reference count on the * global lock hits zero, the transaction is over, and unlockGlobal unlocks all other locks * except for RESOURCE_MUTEX locks. @@ -196,16 +189,6 @@ public: virtual bool unlockGlobal() = 0; /** - * This is only necessary for the MMAP V1 engine and in particular, the fsyncLock command - * which needs to first acquire the global lock in X-mode for truncating the journal and - * then downgrade to S before it blocks. - * - * The downgrade is necessary in order to be nice and not block readers while under - * fsyncLock. - */ - virtual void downgradeGlobalXtoSForMMAPV1() = 0; - - /** * beginWriteUnitOfWork/endWriteUnitOfWork are called at the start and end of WriteUnitOfWorks. * They can be used to implement two-phase locking. Each call to begin should be matched with an * eventual call to end. |