summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_context.h
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2018-05-05 10:20:46 -0400
committerAndy Schwerin <schwerin@mongodb.com>2018-05-05 10:20:46 -0400
commit30994f3bacb6e814ae015d83693c549a3b924ccc (patch)
treebb959682199469dc6039406721a2f8000cefc10e /src/mongo/db/service_context.h
parent757c434668e4936d6b2ac62131be7f12aeac25be (diff)
downloadmongo-30994f3bacb6e814ae015d83693c549a3b924ccc.tar.gz
SERVER-34798 Move storage initialization behaviors out of ServiceContext subclasses to new library.
Diffstat (limited to 'src/mongo/db/service_context.h')
-rw-r--r--src/mongo/db/service_context.h66
1 files changed, 0 insertions, 66 deletions
diff --git a/src/mongo/db/service_context.h b/src/mongo/db/service_context.h
index 1caa0fd0f05..73b272470e6 100644
--- a/src/mongo/db/service_context.h
+++ b/src/mongo/db/service_context.h
@@ -82,19 +82,6 @@ protected:
virtual ~KillOpListenerInterface() = default;
};
-class StorageFactoriesIterator {
- MONGO_DISALLOW_COPYING(StorageFactoriesIterator);
-
-public:
- virtual ~StorageFactoriesIterator() = default;
-
- virtual bool more() const = 0;
- virtual const StorageEngine::Factory* next() = 0;
-
-protected:
- StorageFactoriesIterator() = default;
-};
-
/**
* Class representing the context of a service, such as a MongoD database service or
* a MongoS routing service.
@@ -239,34 +226,6 @@ public:
//
/**
- * Register a storage engine. Called from a MONGO_INIT that depends on initializiation of
- * the global environment.
- * Ownership of 'factory' is transferred to global environment upon registration.
- */
- virtual void registerStorageEngine(const std::string& name,
- const StorageEngine::Factory* factory) = 0;
-
- /**
- * Returns true if "name" refers to a registered storage engine.
- */
- virtual bool isRegisteredStorageEngine(const std::string& name) = 0;
-
- /**
- * Produce an iterator over all registered storage engine factories.
- * Caller owns the returned object and is responsible for deleting when finished.
- *
- * Never returns nullptr.
- */
- virtual StorageFactoriesIterator* makeStorageFactoriesIterator() = 0;
-
- virtual void initializeGlobalStorageEngine() = 0;
-
- /**
- * Shuts down storage engine cleanly and releases any locks on mongod.lock.
- */
- virtual void shutdownGlobalStorageEngineCleanly() = 0;
-
- /**
* Sets the storage engine for this instance. May be called up to once per instance.
*/
void setStorageEngine(std::unique_ptr<StorageEngine> engine);
@@ -574,29 +533,4 @@ bool supportsDocLocking();
*/
bool isMMAPV1();
-/*
- * Extracts the storageEngine bson from the CollectionOptions provided. Loops through each
- * provided storageEngine and asks the matching registered storage engine if the
- * collection/index options are valid. Returns an error if the collection/index options are
- * invalid.
- * If no matching registered storage engine is found, return an error.
- * Validation function 'func' must be either:
- * - &StorageEngine::Factory::validateCollectionStorageOptions; or
- * - &StorageEngine::Factory::validateIndexStorageOptions
- */
-Status validateStorageOptions(
- const BSONObj& storageEngineOptions,
- stdx::function<Status(const StorageEngine::Factory* const, const BSONObj&)> validateFunc);
-
-/*
- * Returns a BSONArray containing the names of available storage engines, or an empty
- * array if there is no global ServiceContext
- */
-BSONArray storageEngineList();
-
-/*
- * Appends a the list of available storage engines to a BSONObjBuilder for reporting purposes.
- */
-void appendStorageEngineList(BSONObjBuilder* result);
-
} // namespace mongo