The GlobalLockAcquisitionTracker keeps track of if the global lock has ever been taken in X or IX mode.
More...
#include <global_lock_acquisition_tracker.h>
The GlobalLockAcquisitionTracker keeps track of if the global lock has ever been taken in X or IX mode.
This class is used to track if we ever did a transaction with the intent to do a write, so that we can enforce write concern on noop writes.
◆ GlobalLockAcquisitionTracker()
mongo::GlobalLockAcquisitionTracker::GlobalLockAcquisitionTracker |
( |
| ) |
|
|
default |
◆ getGlobalExclusiveLockTaken()
bool mongo::GlobalLockAcquisitionTracker::getGlobalExclusiveLockTaken |
( |
| ) |
const |
Returns whether we have ever taken a global lock in X or IX mode in this operation.
◆ setGlobalExclusiveLockTaken()
void mongo::GlobalLockAcquisitionTracker::setGlobalExclusiveLockTaken |
( |
| ) |
|
Sets that we have ever taken a global lock in X or IX mode in this operation.
◆ _globalExclusiveLockTaken
bool mongo::GlobalLockAcquisitionTracker::_globalExclusiveLockTaken = false |
|
private |
◆ get
Initial value:=
OperationContext::declareDecoration<GlobalLockAcquisitionTracker>()
The documentation for this class was generated from the following files: