summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_context.h
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2015-04-30 09:47:35 -0400
committerJonathan Reams <jbreams@mongodb.com>2015-04-30 09:47:35 -0400
commitc269033226874638626b6c028bf0f81fa0af2006 (patch)
treeeda7eaf89b4389b245940fe5af3eac67e0807ba6 /src/mongo/db/service_context.h
parent88882960587d58c83f42ffaee6b3ab39b43be66c (diff)
downloadmongo-c269033226874638626b6c028bf0f81fa0af2006.tar.gz
SERVER-18099 Refactor buildinfo/version reporting
Diffstat (limited to 'src/mongo/db/service_context.h')
-rw-r--r--src/mongo/db/service_context.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mongo/db/service_context.h b/src/mongo/db/service_context.h
index ba1476656f7..40cee393d25 100644
--- a/src/mongo/db/service_context.h
+++ b/src/mongo/db/service_context.h
@@ -336,4 +336,15 @@ namespace mongo {
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