Storage Engine API
mongo::catalog Namespace Reference

Functions

void closeCatalog (OperationContext *opCtx)
 Closes the catalog, destroying all associated in-memory data structures for all databases. More...
 
void openCatalog (OperationContext *opCtx)
 Restores the catalog and all in-memory state after a call to closeCatalog(). More...
 

Function Documentation

◆ closeCatalog()

void mongo::catalog::closeCatalog ( OperationContext *  opCtx)

Closes the catalog, destroying all associated in-memory data structures for all databases.

After a call to this function, it is illegal to access the catalog before calling openCatalog().

Must be called with the global lock acquired in exclusive mode.

◆ openCatalog()

void mongo::catalog::openCatalog ( OperationContext *  opCtx)

Restores the catalog and all in-memory state after a call to closeCatalog().

Must be called with the global lock acquired in exclusive mode.