Storage Engine API
mongo::MMAPV1DatabaseCatalogEntry::EntryInsertion Class Reference

Registers the insertion of a new entry in the _collections cache with the RecoveryUnit, allowing for rollback. More...

Inheritance diagram for mongo::MMAPV1DatabaseCatalogEntry::EntryInsertion:
mongo::RecoveryUnit::Change

Detailed Description

Registers the insertion of a new entry in the _collections cache with the RecoveryUnit, allowing for rollback.

Public Member Functions

 EntryInsertion (StringData ns, MMAPV1DatabaseCatalogEntry *entry)
 
void rollback ()
 
void commit (boost::optional< Timestamp >)
 
- Public Member Functions inherited from mongo::RecoveryUnit::Change
virtual ~Change ()
 

Private Attributes

const std::string _ns
 
MMAPV1DatabaseCatalogEntry *const _entry
 

Constructor & Destructor Documentation

◆ EntryInsertion()

mongo::MMAPV1DatabaseCatalogEntry::EntryInsertion::EntryInsertion ( StringData  ns,
MMAPV1DatabaseCatalogEntry entry 
)
inline

Member Function Documentation

◆ commit()

void mongo::MMAPV1DatabaseCatalogEntry::EntryInsertion::commit ( boost::optional< Timestamp >  )
inlinevirtual

◆ rollback()

void mongo::MMAPV1DatabaseCatalogEntry::EntryInsertion::rollback ( )
inlinevirtual

Member Data Documentation

◆ _entry

MMAPV1DatabaseCatalogEntry* const mongo::MMAPV1DatabaseCatalogEntry::EntryInsertion::_entry
private

◆ _ns

const std::string mongo::MMAPV1DatabaseCatalogEntry::EntryInsertion::_ns
private

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