summaryrefslogtreecommitdiff
path: root/src/mongo/db/kill_sessions_local.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/kill_sessions_local.cpp')
-rw-r--r--src/mongo/db/kill_sessions_local.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/kill_sessions_local.cpp b/src/mongo/db/kill_sessions_local.cpp
index d244143ed4e..da0cd84a1e3 100644
--- a/src/mongo/db/kill_sessions_local.cpp
+++ b/src/mongo/db/kill_sessions_local.cpp
@@ -105,8 +105,7 @@ SessionKiller::Result killSessionsLocal(OperationContext* opCtx,
killSessionsAbortUnpreparedTransactions(opCtx, matcher);
uassertStatusOK(killSessionsLocalKillOps(opCtx, matcher));
- auto res =
- CursorManager::getGlobalCursorManager()->killCursorsWithMatchingSessions(opCtx, matcher);
+ auto res = CursorManager::get(opCtx)->killCursorsWithMatchingSessions(opCtx, matcher);
uassertStatusOK(res.first);
return {std::vector<HostAndPort>{}};