Storage Engine API
mongo::Lock::OplogIntentWriteLock Class Reference

Like the CollectionLock, but optimized for the local oplog. More...

#include <d_concurrency.h>

Detailed Description

Like the CollectionLock, but optimized for the local oplog.

Always locks in MODE_IX, must call serializeIfNeeded() before doing any concurrent operations in order to support storage engines without document level locking. It is an error, checked with a dassert(), to not have a suitable database lock when taking this lock.

Public Member Functions

 OplogIntentWriteLock (Locker *lockState)
 
 ~OplogIntentWriteLock ()
 
void serializeIfNeeded ()
 

Private Member Functions

 MONGO_DISALLOW_COPYING (OplogIntentWriteLock)
 

Private Attributes

Locker *const _lockState
 
bool _serialized
 

Constructor & Destructor Documentation

◆ OplogIntentWriteLock()

mongo::Lock::OplogIntentWriteLock::OplogIntentWriteLock ( Locker lockState)
explicit

◆ ~OplogIntentWriteLock()

mongo::Lock::OplogIntentWriteLock::~OplogIntentWriteLock ( )

Member Function Documentation

◆ MONGO_DISALLOW_COPYING()

mongo::Lock::OplogIntentWriteLock::MONGO_DISALLOW_COPYING ( OplogIntentWriteLock  )
private

◆ serializeIfNeeded()

void mongo::Lock::OplogIntentWriteLock::serializeIfNeeded ( )

Member Data Documentation

◆ _lockState

Locker* const mongo::Lock::OplogIntentWriteLock::_lockState
private

◆ _serialized

bool mongo::Lock::OplogIntentWriteLock::_serialized
private

The documentation for this class was generated from the following files: