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

Turn on "parallel batch writer mode" by locking the global ParallelBatchWriterMode resource in exclusive mode. More...

#include <d_concurrency.h>

Detailed Description

Turn on "parallel batch writer mode" by locking the global ParallelBatchWriterMode resource in exclusive mode.

This mode is off by default. Note that only one thread creates a ParallelBatchWriterMode object; the other batch writers just call setShouldConflictWithSecondaryBatchApplication(false).

Public Member Functions

 ParallelBatchWriterMode (Locker *lockState)
 

Private Member Functions

 MONGO_DISALLOW_COPYING (ParallelBatchWriterMode)
 

Private Attributes

ResourceLock _pbwm
 
ShouldNotConflictWithSecondaryBatchApplicationBlock _shouldNotConflictBlock
 

Constructor & Destructor Documentation

◆ ParallelBatchWriterMode()

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

Member Function Documentation

◆ MONGO_DISALLOW_COPYING()

mongo::Lock::ParallelBatchWriterMode::MONGO_DISALLOW_COPYING ( ParallelBatchWriterMode  )
private

Member Data Documentation

◆ _pbwm

ResourceLock mongo::Lock::ParallelBatchWriterMode::_pbwm
private

◆ _shouldNotConflictBlock

ShouldNotConflictWithSecondaryBatchApplicationBlock mongo::Lock::ParallelBatchWriterMode::_shouldNotConflictBlock
private

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