@@ -87,18 +87,6 @@ void initializeStorageEngine(ServiceContext* service, const StorageEngineInitFla
8787 }
8888
8989 if (auto existingStorageEngine = StorageEngineMetadata::getStorageEngineForPath (dbpath)) {
90- if (*existingStorageEngine == " mmapv1" ||
91- (storageGlobalParams.engineSetByUser && storageGlobalParams.engine == " mmapv1" )) {
92- log () << startupWarningsLog;
93- log () << " ** WARNING: Support for MMAPV1 storage engine has been deprecated and will be"
94- << startupWarningsLog;
95- log () << " ** removed in version 4.2. Please plan to migrate to the wiredTiger"
96- << startupWarningsLog;
97- log () << " ** storage engine." << startupWarningsLog;
98- log () << " ** See http://dochub.mongodb.org/core/deprecated-mmapv1" ;
99- log () << startupWarningsLog;
100- }
101-
10290 if (storageGlobalParams.engineSetByUser ) {
10391 // Verify that the name of the user-supplied storage engine matches the contents of
10492 // the metadata file.
@@ -121,25 +109,6 @@ void initializeStorageEngine(ServiceContext* service, const StorageEngineInitFla
121109 << " storage engine to '" << *existingStorageEngine << " '." ;
122110 storageGlobalParams.engine = *existingStorageEngine;
123111 }
124- } else if (!storageGlobalParams.engineSetByUser ) {
125- // Ensure the default storage engine is available with this build of mongod.
126- uassert (28663 ,
127- str::stream ()
128- << " Cannot start server. The default storage engine '"
129- << storageGlobalParams.engine
130- << " ' is not available with this build of mongod. Please specify a different"
131- << " storage engine explicitly, e.g. --storageEngine=mmapv1." ,
132- isRegisteredStorageEngine (service, storageGlobalParams.engine ));
133- } else if (storageGlobalParams.engineSetByUser && storageGlobalParams.engine == " mmapv1" ) {
134- log () << startupWarningsLog;
135- log () << " ** WARNING: You have explicitly specified 'MMAPV1' storage engine in your"
136- << startupWarningsLog;
137- log () << " ** config file or as a command line option. Support for the MMAPV1"
138- << startupWarningsLog;
139- log () << " ** storage engine has been deprecated and will be removed in"
140- << startupWarningsLog;
141- log () << " ** version 4.2. See http://dochub.mongodb.org/core/deprecated-mmapv1" ;
142- log () << startupWarningsLog;
143112 }
144113
145114 const StorageEngine::Factory* factory =
0 commit comments