diff options
Diffstat (limited to 'src/mongo/db/session/session_killer.cpp')
-rw-r--r-- | src/mongo/db/session/session_killer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/session/session_killer.cpp b/src/mongo/db/session/session_killer.cpp index fa3c6adda25..03882219ddb 100644 --- a/src/mongo/db/session/session_killer.cpp +++ b/src/mongo/db/session/session_killer.cpp @@ -51,6 +51,12 @@ SessionKiller::SessionKiller(ServiceContext* sc, KillFunc killer) ThreadClient tc("SessionKiller", sc); + // TODO(SERVER-74658): Please revisit if this thread could be made killable. + { + stdx::lock_guard<Client> lk(*tc.get()); + tc.get()->setSystemOperationUnkillableByStepdown(lk); + } + stdx::unique_lock<Latch> lk(_mutex); // While we're not in shutdown |