![]() |
Storage Engine API
|
Like the CollectionLock, but optimized for the local oplog. More...
#include <d_concurrency.h>
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 |
|
explicit |
| mongo::Lock::OplogIntentWriteLock::~OplogIntentWriteLock | ( | ) |
|
private |
| void mongo::Lock::OplogIntentWriteLock::serializeIfNeeded | ( | ) |
|
private |
|
private |