diff options
author | Josef Ahmad <josef.ahmad@mongodb.com> | 2023-03-28 13:51:02 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-03-28 15:53:49 +0000 |
commit | 058896012d3dc2cffeeb07cbae69d2eab8c278a1 (patch) | |
tree | a9a13f8fcae02cd7f1f1a5bb6601b7b8796301e4 | |
parent | 126ce85a4844f7d7bf794567fc327926b47c1505 (diff) | |
download | mongo-058896012d3dc2cffeeb07cbae69d2eab8c278a1.tar.gz |
SERVER-73036 Make killOp on createIndexes interruptible by stepdown
-rw-r--r-- | src/mongo/db/commands/create_indexes_cmd.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/mongo/db/commands/create_indexes_cmd.cpp b/src/mongo/db/commands/create_indexes_cmd.cpp index b745f43a839..5b94d27119e 100644 --- a/src/mongo/db/commands/create_indexes_cmd.cpp +++ b/src/mongo/db/commands/create_indexes_cmd.cpp @@ -632,12 +632,6 @@ CreateIndexesReply runCreateIndexesWithCoordinator(OperationContext* opCtx, // taking locks. Use a new OperationContext to abort the index build. auto newClient = opCtx->getServiceContext()->makeClient("abort-index-build"); - // TODO(SERVER-74657): Please revisit if this thread could be made killable. - { - stdx::lock_guard<Client> lk(*newClient.get()); - newClient.get()->setSystemOperationUnKillableByStepdown(lk); - } - AlternativeClientRegion acr(newClient); const auto abortCtx = cc().makeOperationContext(); |