summaryrefslogtreecommitdiff
path: root/src/mongo/db/session/kill_sessions_local.cpp
diff options
context:
space:
mode:
authorSviatlana Zuiko <sviatlana.zuiko@mongodb.com>2023-04-25 18:17:54 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-04-25 22:38:32 +0000
commit0ed3c5ba08d56e308bf05959932b34d8d1e6040e (patch)
tree1b55c511e87a6449cd9f3e754af04d1179ee2712 /src/mongo/db/session/kill_sessions_local.cpp
parent8ecaea0cba2e7b121c189d4d4eedf7e3d725dc21 (diff)
downloadmongo-0ed3c5ba08d56e308bf05959932b34d8d1e6040e.tar.gz
Revert "SERVER-70127 change system operations to be killable by default"
This reverts commit c35bad3b048e8d885bf0b7517aacd2349ea81d14.
Diffstat (limited to 'src/mongo/db/session/kill_sessions_local.cpp')
-rw-r--r--src/mongo/db/session/kill_sessions_local.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mongo/db/session/kill_sessions_local.cpp b/src/mongo/db/session/kill_sessions_local.cpp
index 71a00432876..b40367cec27 100644
--- a/src/mongo/db/session/kill_sessions_local.cpp
+++ b/src/mongo/db/session/kill_sessions_local.cpp
@@ -192,13 +192,6 @@ void killSessionsAbortAllPreparedTransactions(OperationContext* opCtx) {
void yieldLocksForPreparedTransactions(OperationContext* opCtx) {
// Create a new opCtx because we need an empty locker to refresh the locks.
auto newClient = opCtx->getServiceContext()->makeClient("prepared-txns-yield-locks");
-
- // TODO(SERVER-74658): Please revisit if this thread could be made killable.
- {
- stdx::lock_guard<Client> lk(*newClient.get());
- newClient.get()->setSystemOperationUnkillableByStepdown(lk);
- }
-
AlternativeClientRegion acr(newClient);
auto newOpCtx = cc().makeOperationContext();