|
| MMAPV1Engine (const StorageEngineLockFile *lockFile, ClockSource *cs) |
|
| MMAPV1Engine (const StorageEngineLockFile *lockFile, ClockSource *cs, std::unique_ptr< ExtentManager::Factory > extentManagerFactory) |
|
virtual | ~MMAPV1Engine () |
|
void | finishInit () |
| Called after the globalStorageEngine pointer has been set up, before any other methods are called. More...
|
|
RecoveryUnit * | newRecoveryUnit () |
| Returns a new interface to the storage engine's recovery unit. More...
|
|
void | listDatabases (std::vector< std::string > *out) const |
| List the databases stored in this storage engine. More...
|
|
int | flushAllFiles (OperationContext *opCtx, bool sync) |
|
Status | beginBackup (OperationContext *opCtx) |
| Transitions the storage engine into backup mode. More...
|
|
void | endBackup (OperationContext *opCtx) |
| Transitions the storage engine out of backup mode. More...
|
|
DatabaseCatalogEntry * | getDatabaseCatalogEntry (OperationContext *opCtx, StringData db) |
| Return the DatabaseCatalogEntry that describes the database indicated by 'db'. More...
|
|
virtual bool | supportsDocLocking () const |
| Returns whether the storage engine supports its own locking locking below the collection level. More...
|
|
virtual bool | isMmapV1 () const |
| Only MMAPv1 should override this and return true to trigger MMAPv1-specific behavior. More...
|
|
virtual bool | isDurable () const |
| Returns whether the engine supports a journalling concept or not. More...
|
|
virtual bool | isEphemeral () const |
| Returns true if the engine does not persist data to disk; false otherwise. More...
|
|
virtual Status | closeDatabase (OperationContext *opCtx, StringData db) |
| Closes all file handles associated with a database. More...
|
|
virtual Status | dropDatabase (OperationContext *opCtx, StringData db) |
| Deletes all data and metadata for a database. More...
|
|
virtual void | cleanShutdown () |
| This method will be called before there is a clean shutdown. More...
|
|
virtual Status | repairRecordStore (OperationContext *opCtx, const std::string &ns) |
| Recover as much data as possible from a potentially corrupt RecordStore. More...
|
|
Status | repairDatabase (OperationContext *opCtx, const std::string &dbName, bool preserveClonedFilesOnFailure, bool backupOriginalFiles) |
|
RecordAccessTracker & | getRecordAccessTracker () |
| Gets a reference to the abstraction used by MMAP v1 to track recently used memory addresses. More...
|
|
void | setJournalListener (JournalListener *jl) final |
| Sets a new JournalListener, which is used by the storage engine to alert the rest of the system about journaled write progress. More...
|
|
Timestamp | getAllCommittedTimestamp () const override |
| Returns the all committed timestamp. More...
|
|
virtual | ~StorageEngine () |
| The destructor should only be called if we are tearing down but not exiting the process. More...
|
|
virtual bool | supportsDBLocking () const |
| Returns whether the storage engine supports locking at a database level. More...
|
|
virtual bool | supportsCappedCollections () const |
| Returns whether the storage engine supports capped collections. More...
|
|
virtual void | loadCatalog (OperationContext *opCtx) |
| Populates and tears down in-memory data structures, respectively. More...
|
|
virtual void | closeCatalog (OperationContext *opCtx) |
|
virtual SnapshotManager * | getSnapshotManager () const |
| Returns the SnapshotManager for this StorageEngine or NULL if not supported. More...
|
|
virtual bool | supportsRecoverToStableTimestamp () const |
| Returns whether the storage engine supports "recover to stable timestamp". More...
|
|
virtual bool | supportsReadConcernSnapshot () const |
| Returns true if the storage engine supports the readConcern level "snapshot". More...
|
|
virtual StatusWith< Timestamp > | recoverToStableTimestamp (OperationContext *opCtx) |
| Recovers the storage engine state to the last stable timestamp. More...
|
|
virtual boost::optional< Timestamp > | getRecoveryTimestamp () const |
| Returns the stable timestamp that the storage engine recovered to on startup. More...
|
|
virtual boost::optional< Timestamp > | getLastStableCheckpointTimestamp () const |
| Returns a timestamp that is guaranteed to be persisted to disk in a checkpoint. More...
|
|
virtual void | setStableTimestamp (Timestamp timestamp) |
| Sets the highest timestamp at which the storage engine is allowed to take a checkpoint. More...
|
|
virtual void | setInitialDataTimestamp (Timestamp timestamp) |
| Tells the storage engine the timestamp of the data at startup. More...
|
|
virtual void | setOldestTimestampFromStable () |
| Uses the current stable timestamp to set the oldest timestamp for which the storage engine must maintain snapshot history through. More...
|
|
virtual void | setOldestTimestamp (Timestamp timestamp) |
| Sets the oldest timestamp for which the storage engine must maintain snapshot history through. More...
|
|
virtual bool | isCacheUnderPressure (OperationContext *opCtx) const |
| Indicates whether the storage engine cache is under pressure. More...
|
|
virtual void | setCachePressureForTest (int pressure) |
| For unit tests only. More...
|
|
virtual void | replicationBatchIsComplete () const |
| Notifies the storage engine that a replication batch has completed. More...
|
|
virtual StatusWith< std::vector< CollectionIndexNamePair > > | reconcileCatalogAndIdents (OperationContext *opCtx) |
| Drop abandoned idents. More...
|
|
Status mongo::MMAPV1Engine::beginBackup |
( |
OperationContext * |
opCtx | ) |
|
|
virtual |
Transitions the storage engine into backup mode.
During backup mode the storage engine must stabilize its on-disk files, and avoid any internal processing that may involve file I/O, such as online compaction, so a filesystem level backup may be performed.
Storage engines that do not support this feature should use the default implementation. Storage engines that implement this must also implement endBackup().
For Storage engines that implement beginBackup the _inBackupMode variable is provided to avoid multiple instance enterting/leaving backup concurrently.
If this function returns an OK status, MongoDB can call endBackup to signal the storage engine that filesystem writes may continue. This function should return a non-OK status if filesystem changes cannot be stopped to allow for online backup. If the function should be retried, returns a non-OK status. This function may throw a WriteConflictException, which should trigger a retry by the caller. All other exceptions should be treated as errors.
Reimplemented from mongo::StorageEngine.