summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/mobile/mobile_init.cpp
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/storage/mobile/mobile_init.cpp
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/storage/mobile/mobile_init.cpp')
-rw-r--r--src/mongo/db/storage/mobile/mobile_init.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/storage/mobile/mobile_init.cpp b/src/mongo/db/storage/mobile/mobile_init.cpp
index edadad22887..41a5dc83159 100644
--- a/src/mongo/db/storage/mobile/mobile_init.cpp
+++ b/src/mongo/db/storage/mobile/mobile_init.cpp
@@ -34,6 +34,7 @@
#include "mongo/db/service_context.h"
#include "mongo/db/storage/kv/kv_storage_engine.h"
#include "mongo/db/storage/mobile/mobile_kv_engine.h"
+#include "mongo/db/storage/storage_engine_init.h"
#include "mongo/db/storage/storage_options.h"
namespace mongo {
@@ -74,7 +75,7 @@ GlobalInitializerRegisterer mobileKVEngineInitializer(
"MobileKVEngineInit",
{"ServiceContext"},
[](InitializerContext* context) {
- getGlobalServiceContext()->registerStorageEngine("mobile", new MobileFactory());
+ registerStorageEngine(getGlobalServiceContext(), std::make_unique<MobileFactory>());
return Status::OK();
},
[](DeinitializerContext* const) { return Status::OK(); });