summaryrefslogtreecommitdiff
path: root/src/mongo/db
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2020-04-07 13:01:54 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-07 17:22:48 +0000
commit51a424b3dcd50425fd4e782b6bc072533f211c12 (patch)
tree81827140734ef9b584b7c6c90c71d2e5ec5d4c5f /src/mongo/db
parent2f6cac5d4b98969621b48decd2cadaed9e8faf14 (diff)
downloadmongo-51a424b3dcd50425fd4e782b6bc072533f211c12.tar.gz
SERVER-46595 ignore interruptions in OpCtx when starting index build
Diffstat (limited to 'src/mongo/db')
-rw-r--r--src/mongo/db/index_builds_coordinator_mongod.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/index_builds_coordinator_mongod.cpp b/src/mongo/db/index_builds_coordinator_mongod.cpp
index 8d204fd7d9f..a64cbf36cad 100644
--- a/src/mongo/db/index_builds_coordinator_mongod.cpp
+++ b/src/mongo/db/index_builds_coordinator_mongod.cpp
@@ -320,7 +320,10 @@ IndexBuildsCoordinatorMongod::startIndexBuild(OperationContext* opCtx,
});
// Waits until the index build has either been started or failed to start.
- auto status = startFuture.getNoThrow(opCtx);
+ // Ignore any interruption state in 'opCtx'.
+ // If 'opCtx' is interrupted, the caller will be notified after startIndexBuild() returns when
+ // it checks the future associated with 'sharedPromise'.
+ auto status = startFuture.getNoThrow(Interruptible::notInterruptible());
if (!status.isOK()) {
return status;
}