summaryrefslogtreecommitdiff
path: root/src/mongo/db/concurrency/lock_state.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/concurrency/lock_state.h')
-rw-r--r--src/mongo/db/concurrency/lock_state.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mongo/db/concurrency/lock_state.h b/src/mongo/db/concurrency/lock_state.h
index 599cb95bd2d..ab21b58bb3a 100644
--- a/src/mongo/db/concurrency/lock_state.h
+++ b/src/mongo/db/concurrency/lock_state.h
@@ -149,8 +149,8 @@ public:
virtual LockResult lockRSTLBegin(OperationContext* opCtx);
virtual LockResult lockRSTLComplete(OperationContext* opCtx, Date_t deadline);
- virtual void beginWriteUnitOfWork();
- virtual void endWriteUnitOfWork();
+ virtual void beginWriteUnitOfWork() override;
+ virtual void endWriteUnitOfWork() override;
virtual bool inAWriteUnitOfWork() const {
return _wuowNestingLevel > 0;
@@ -194,6 +194,10 @@ public:
restoreLockState(nullptr, stateToRestore);
}
+ bool releaseWriteUnitOfWork(LockSnapshot* stateOut) override;
+ void restoreWriteUnitOfWork(OperationContext* opCtx,
+ const LockSnapshot& stateToRestore) override;
+
virtual void releaseTicket();
virtual void reacquireTicket(OperationContext* opCtx);