|
112 | 112 | #include "mongo/util/clock_source_mock.h" |
113 | 113 | #include "mongo/util/concurrency/thread_pool.h" |
114 | 114 | #include "mongo/util/duration.h" |
115 | | -#include "mongo/util/fail_point.h" |
116 | 115 | #include "mongo/util/periodic_runner.h" |
117 | 116 | #include "mongo/util/periodic_runner_factory.h" |
118 | 117 | #include "mongo/util/time_support.h" |
@@ -180,9 +179,6 @@ class TestServiceContext { |
180 | 179 | repl::ReplicationCoordinator::set( |
181 | 180 | _svcCtx, std::unique_ptr<repl::ReplicationCoordinator>(_replCoord)); |
182 | 181 |
|
183 | | - // Disable fast shutdown so that WT can free memory. |
184 | | - globalFailPointRegistry().find("WTDisableFastShutDown")->setMode(FailPoint::alwaysOn); |
185 | | - |
186 | 182 | auto startupOpCtx = _svcCtx->makeOperationContext(&cc()); |
187 | 183 | initializeStorageEngine(startupOpCtx.get(), |
188 | 184 | StorageEngineInitFlags::kAllowNoLockFile | |
@@ -250,8 +246,8 @@ class TestServiceContext { |
250 | 246 | auto databaseHolder = DatabaseHolder::get(opCtx); |
251 | 247 | databaseHolder->closeAll(opCtx); |
252 | 248 |
|
253 | | - // Shut down storage engine. |
254 | | - shutdownGlobalStorageEngineCleanly(_svcCtx); |
| 249 | + // Shut down storage engine and free memory. |
| 250 | + shutdownGlobalStorageEngineCleanly(_svcCtx, false /* memLeakAllowed */); |
255 | 251 | } |
256 | 252 |
|
257 | 253 | // Shut down the storage engine, clear the dbpath, and restart the storage engine with empty |
|
0 commit comments