summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_builds_coordinator_mongod.cpp
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2019-08-28 16:50:05 +0000
committerevergreen <evergreen@mongodb.com>2019-08-28 16:50:05 +0000
commit976c841bda34f6f7a9da52b540b70acda65ae2e0 (patch)
tree6a4c1ac27683c763b45f510bf142083f396453bc /src/mongo/db/index_builds_coordinator_mongod.cpp
parentc72617a4777e31bbd887632e9529b8e00ce0857a (diff)
downloadmongo-976c841bda34f6f7a9da52b540b70acda65ae2e0.tar.gz
SERVER-43019 remove unreachable code from IndexBuildsCoordinator and rename function
The code for _shuttingDown was made unreachable by commit c72617a4777e31bbd887632e9529b8e00ce0857a.
Diffstat (limited to 'src/mongo/db/index_builds_coordinator_mongod.cpp')
-rw-r--r--src/mongo/db/index_builds_coordinator_mongod.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/index_builds_coordinator_mongod.cpp b/src/mongo/db/index_builds_coordinator_mongod.cpp
index c3299d97463..695edb86852 100644
--- a/src/mongo/db/index_builds_coordinator_mongod.cpp
+++ b/src/mongo/db/index_builds_coordinator_mongod.cpp
@@ -80,8 +80,8 @@ void IndexBuildsCoordinatorMongod::shutdown() {
// Stop new scheduling.
_threadPool.shutdown();
- // Signal active builds to stop and wait for them to stop.
- interruptAllIndexBuildsForShutdown("Index build interrupted due to shutdown.");
+ // Wait for all active builds to stop.
+ waitForAllIndexBuildsToStopForShutdown();
// Wait for active threads to finish.
_threadPool.join();