summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/create_indexes_cmd.cpp
diff options
context:
space:
mode:
authorJiawei Yang <jiawei.yang@mongodb.com>2023-04-25 22:43:17 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-04-26 04:08:30 +0000
commit606e34054ef33e59b78715263b125ff7ebea1394 (patch)
tree85f8e6b1256096da4facc919bc6123db693a437f /src/mongo/db/commands/create_indexes_cmd.cpp
parent5c1f588bfa4ed2edbeb3abbb26e952e08641da14 (diff)
downloadmongo-606e34054ef33e59b78715263b125ff7ebea1394.tar.gz
SERVER-70127 change system operations to be killable by default
Diffstat (limited to 'src/mongo/db/commands/create_indexes_cmd.cpp')
-rw-r--r--src/mongo/db/commands/create_indexes_cmd.cpp6
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 be6ef5c15e2..ce94c92662a 100644
--- a/src/mongo/db/commands/create_indexes_cmd.cpp
+++ b/src/mongo/db/commands/create_indexes_cmd.cpp
@@ -640,12 +640,6 @@ CreateIndexesReply runCreateIndexesWithCoordinator(OperationContext* opCtx,
// The current OperationContext may be interrupted, which would prevent us from
// taking locks. Use a new OperationContext to abort the index build.
auto newClient = opCtx->getServiceContext()->makeClient("abort-index-build");
-
- {
- stdx::lock_guard<Client> lk(*newClient.get());
- newClient.get()->setSystemOperationKillableByStepdown(lk);
- }
-
AlternativeClientRegion acr(newClient);
const auto abortCtx = cc().makeOperationContext();