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

Registers the removal of an entry from the _collections cache with the RecoveryUnit, delaying actual deletion of the information until the change is commited. More...

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

Detailed Description

Registers the removal of an entry from the _collections cache with the RecoveryUnit, delaying actual deletion of the information until the change is commited.

This allows for easy rollback.

Public Member Functions

 EntryRemoval (StringData ns, MMAPV1DatabaseCatalogEntry *catalogEntry, Entry *cachedEntry)
 
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 _catalogEntry
 
Entry *const _cachedEntry
 

Constructor & Destructor Documentation

◆ EntryRemoval()

mongo::MMAPV1DatabaseCatalogEntry::EntryRemoval::EntryRemoval ( StringData  ns,
MMAPV1DatabaseCatalogEntry catalogEntry,
Entry cachedEntry 
)
inline

Member Function Documentation

◆ commit()

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

◆ rollback()

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

Member Data Documentation

◆ _cachedEntry

Entry* const mongo::MMAPV1DatabaseCatalogEntry::EntryRemoval::_cachedEntry
private

◆ _catalogEntry

MMAPV1DatabaseCatalogEntry* const mongo::MMAPV1DatabaseCatalogEntry::EntryRemoval::_catalogEntry
private

◆ _ns

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

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