Storage Engine API
mongo::MultiIndexBlockImpl::CleanupIndexesVectorOnRollback Class Reference

On rollback in init(), cleans up _indexes so that ~MultiIndexBlock doesn't try to clean up _indexes manually (since the changes were already rolled back). More...

Inheritance diagram for mongo::MultiIndexBlockImpl::CleanupIndexesVectorOnRollback:
mongo::RecoveryUnit::Change

Detailed Description

On rollback in init(), cleans up _indexes so that ~MultiIndexBlock doesn't try to clean up _indexes manually (since the changes were already rolled back).

Due to this, it is thus legal to call init() again after it fails.

Public Member Functions

 CleanupIndexesVectorOnRollback (MultiIndexBlockImpl *indexer)
 
virtual void commit (boost::optional< Timestamp >)
 
virtual void rollback ()
 
- Public Member Functions inherited from mongo::RecoveryUnit::Change
virtual ~Change ()
 

Private Attributes

MultiIndexBlockImpl *const _indexer
 

Constructor & Destructor Documentation

◆ CleanupIndexesVectorOnRollback()

mongo::MultiIndexBlockImpl::CleanupIndexesVectorOnRollback::CleanupIndexesVectorOnRollback ( MultiIndexBlockImpl indexer)
inlineexplicit

Member Function Documentation

◆ commit()

virtual void mongo::MultiIndexBlockImpl::CleanupIndexesVectorOnRollback::commit ( boost::optional< Timestamp >  )
inlinevirtual

◆ rollback()

virtual void mongo::MultiIndexBlockImpl::CleanupIndexesVectorOnRollback::rollback ( )
inlinevirtual

Member Data Documentation

◆ _indexer

MultiIndexBlockImpl* const mongo::MultiIndexBlockImpl::CleanupIndexesVectorOnRollback::_indexer
private

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