summaryrefslogtreecommitdiff
path: root/src/mongo/client/embedded/embedded.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/client/embedded/embedded.cpp')
-rw-r--r--src/mongo/client/embedded/embedded.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/client/embedded/embedded.cpp b/src/mongo/client/embedded/embedded.cpp
index 328217bd157..7fc8b1a8e14 100644
--- a/src/mongo/client/embedded/embedded.cpp
+++ b/src/mongo/client/embedded/embedded.cpp
@@ -140,6 +140,7 @@ void shutdown(ServiceContext* srvContext) {
// Close all open databases, shutdown storage engine and run all deinitializers.
auto shutdownOpCtx = serviceContext->makeOperationContext(client);
{
+ UninterruptibleLockGuard noInterrupt(shutdownOpCtx->lockState());
Lock::GlobalLock lk(shutdownOpCtx.get(), MODE_X, Date_t::max());
dbHolder().closeAll(shutdownOpCtx.get(), "shutdown");