summaryrefslogtreecommitdiff
path: root/src/mongo/s/mongos_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/s/mongos_main.cpp')
-rw-r--r--src/mongo/s/mongos_main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/s/mongos_main.cpp b/src/mongo/s/mongos_main.cpp
index bea3ea0ae4b..0504b714aec 100644
--- a/src/mongo/s/mongos_main.cpp
+++ b/src/mongo/s/mongos_main.cpp
@@ -321,6 +321,12 @@ void cleanupTask(const ShutdownTaskArgs& shutdownArgs) {
LOGV2(4701800, "pauseWhileKillingOperationsAtShutdown failpoint enabled");
sleepsecs(1);
}
+ FailPoint* hangBeforeInterruptfailPoint =
+ globalFailPointRegistry().find("hangBeforeCheckingMongosShutdownInterrupt");
+ if (hangBeforeInterruptfailPoint) {
+ hangBeforeInterruptfailPoint->setMode(FailPoint::Mode::off);
+ sleepsecs(3);
+ }
}
// Perform all shutdown operations after setKillAllOperations is called in order to ensure