Storage Engine API
mongo::UUIDCatalogObserver Class Reference

Class used for updating the UUID catalog on metadata operations. More...

#include <uuid_catalog.h>

Inheritance diagram for mongo::UUIDCatalogObserver:

Detailed Description

Class used for updating the UUID catalog on metadata operations.

Public Member Functions

void onCreateIndex (OperationContext *opCtx, const NamespaceString &nss, OptionalCollectionUUID uuid, BSONObj indexDoc, bool fromMigrate) override
 
void onInserts (OperationContext *opCtx, const NamespaceString &nss, OptionalCollectionUUID uuid, std::vector< InsertStatement >::const_iterator begin, std::vector< InsertStatement >::const_iterator end, bool fromMigrate) override
 
void onUpdate (OperationContext *opCtx, const OplogUpdateEntryArgs &args) override
 
void aboutToDelete (OperationContext *opCtx, const NamespaceString &nss, const BSONObj &doc) override
 
void onDelete (OperationContext *opCtx, const NamespaceString &nss, OptionalCollectionUUID uuid, StmtId stmtId, bool fromMigrate, const boost::optional< BSONObj > &deletedDoc) override
 
void onInternalOpMessage (OperationContext *opCtx, const NamespaceString &nss, const boost::optional< UUID > uuid, const BSONObj &msgObj, const boost::optional< BSONObj > o2MsgObj) override
 
void onCreateCollection (OperationContext *opCtx, Collection *coll, const NamespaceString &collectionName, const CollectionOptions &options, const BSONObj &idIndex) override
 
void onCollMod (OperationContext *opCtx, const NamespaceString &nss, OptionalCollectionUUID uuid, const BSONObj &collModCmd, const CollectionOptions &oldCollOptions, boost::optional< TTLCollModInfo > ttlInfo) override
 
void onDropDatabase (OperationContext *opCtx, const std::string &dbName) override
 
repl::OpTime onDropCollection (OperationContext *opCtx, const NamespaceString &collectionName, OptionalCollectionUUID uuid) override
 
void onDropIndex (OperationContext *opCtx, const NamespaceString &nss, OptionalCollectionUUID uuid, const std::string &indexName, const BSONObj &idxDescriptor) override
 
void onRenameCollection (OperationContext *opCtx, const NamespaceString &fromCollection, const NamespaceString &toCollection, OptionalCollectionUUID uuid, OptionalCollectionUUID dropTargetUUID, bool stayTemp) override
 
repl::OpTime preRenameCollection (OperationContext *opCtx, const NamespaceString &fromCollection, const NamespaceString &toCollection, OptionalCollectionUUID uuid, OptionalCollectionUUID dropTargetUUID, bool stayTemp) override
 
void postRenameCollection (OperationContext *opCtx, const NamespaceString &fromCollection, const NamespaceString &toCollection, OptionalCollectionUUID uuid, OptionalCollectionUUID dropTargetUUID, bool stayTemp) override
 
void onApplyOps (OperationContext *opCtx, const std::string &dbName, const BSONObj &applyOpCmd) override
 
void onEmptyCapped (OperationContext *opCtx, const NamespaceString &collectionName, OptionalCollectionUUID uuid) override
 
void onTransactionCommit (OperationContext *opCtx) override
 
void onTransactionPrepare (OperationContext *opCtx) override
 
void onTransactionAbort (OperationContext *opCtx) override
 
void onReplicationRollback (OperationContext *opCtx, const RollbackObserverInfo &rbInfo) override
 

Member Function Documentation

◆ aboutToDelete()

void mongo::UUIDCatalogObserver::aboutToDelete ( OperationContext *  opCtx,
const NamespaceString &  nss,
const BSONObj &  doc 
)
inlineoverride

◆ onApplyOps()

void mongo::UUIDCatalogObserver::onApplyOps ( OperationContext *  opCtx,
const std::string &  dbName,
const BSONObj &  applyOpCmd 
)
inlineoverride

◆ onCollMod()

void mongo::UUIDCatalogObserver::onCollMod ( OperationContext *  opCtx,
const NamespaceString &  nss,
OptionalCollectionUUID  uuid,
const BSONObj &  collModCmd,
const CollectionOptions oldCollOptions,
boost::optional< TTLCollModInfo >  ttlInfo 
)
override

◆ onCreateCollection()

void mongo::UUIDCatalogObserver::onCreateCollection ( OperationContext *  opCtx,
Collection coll,
const NamespaceString &  collectionName,
const CollectionOptions options,
const BSONObj &  idIndex 
)
override

◆ onCreateIndex()

void mongo::UUIDCatalogObserver::onCreateIndex ( OperationContext *  opCtx,
const NamespaceString &  nss,
OptionalCollectionUUID  uuid,
BSONObj  indexDoc,
bool  fromMigrate 
)
inlineoverride

◆ onDelete()

void mongo::UUIDCatalogObserver::onDelete ( OperationContext *  opCtx,
const NamespaceString &  nss,
OptionalCollectionUUID  uuid,
StmtId  stmtId,
bool  fromMigrate,
const boost::optional< BSONObj > &  deletedDoc 
)
inlineoverride

◆ onDropCollection()

repl::OpTime mongo::UUIDCatalogObserver::onDropCollection ( OperationContext *  opCtx,
const NamespaceString &  collectionName,
OptionalCollectionUUID  uuid 
)
override

◆ onDropDatabase()

void mongo::UUIDCatalogObserver::onDropDatabase ( OperationContext *  opCtx,
const std::string &  dbName 
)
inlineoverride

◆ onDropIndex()

void mongo::UUIDCatalogObserver::onDropIndex ( OperationContext *  opCtx,
const NamespaceString &  nss,
OptionalCollectionUUID  uuid,
const std::string &  indexName,
const BSONObj &  idxDescriptor 
)
inlineoverride

◆ onEmptyCapped()

void mongo::UUIDCatalogObserver::onEmptyCapped ( OperationContext *  opCtx,
const NamespaceString &  collectionName,
OptionalCollectionUUID  uuid 
)
inlineoverride

◆ onInserts()

void mongo::UUIDCatalogObserver::onInserts ( OperationContext *  opCtx,
const NamespaceString &  nss,
OptionalCollectionUUID  uuid,
std::vector< InsertStatement >::const_iterator  begin,
std::vector< InsertStatement >::const_iterator  end,
bool  fromMigrate 
)
inlineoverride

◆ onInternalOpMessage()

void mongo::UUIDCatalogObserver::onInternalOpMessage ( OperationContext *  opCtx,
const NamespaceString &  nss,
const boost::optional< UUID >  uuid,
const BSONObj &  msgObj,
const boost::optional< BSONObj >  o2MsgObj 
)
inlineoverride

◆ onRenameCollection()

void mongo::UUIDCatalogObserver::onRenameCollection ( OperationContext *  opCtx,
const NamespaceString &  fromCollection,
const NamespaceString &  toCollection,
OptionalCollectionUUID  uuid,
OptionalCollectionUUID  dropTargetUUID,
bool  stayTemp 
)
override

◆ onReplicationRollback()

void mongo::UUIDCatalogObserver::onReplicationRollback ( OperationContext *  opCtx,
const RollbackObserverInfo &  rbInfo 
)
inlineoverride

◆ onTransactionAbort()

void mongo::UUIDCatalogObserver::onTransactionAbort ( OperationContext *  opCtx)
inlineoverride

◆ onTransactionCommit()

void mongo::UUIDCatalogObserver::onTransactionCommit ( OperationContext *  opCtx)
inlineoverride

◆ onTransactionPrepare()

void mongo::UUIDCatalogObserver::onTransactionPrepare ( OperationContext *  opCtx)
inlineoverride

◆ onUpdate()

void mongo::UUIDCatalogObserver::onUpdate ( OperationContext *  opCtx,
const OplogUpdateEntryArgs &  args 
)
inlineoverride

◆ postRenameCollection()

void mongo::UUIDCatalogObserver::postRenameCollection ( OperationContext *  opCtx,
const NamespaceString &  fromCollection,
const NamespaceString &  toCollection,
OptionalCollectionUUID  uuid,
OptionalCollectionUUID  dropTargetUUID,
bool  stayTemp 
)
override

◆ preRenameCollection()

repl::OpTime mongo::UUIDCatalogObserver::preRenameCollection ( OperationContext *  opCtx,
const NamespaceString &  fromCollection,
const NamespaceString &  toCollection,
OptionalCollectionUUID  uuid,
OptionalCollectionUUID  dropTargetUUID,
bool  stayTemp 
)
override

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