diff options
author | Anton Korshunov <anton.korshunov@mongodb.com> | 2019-02-07 11:34:26 +0000 |
---|---|---|
committer | Anton Korshunov <anton.korshunov@mongodb.com> | 2019-02-11 15:55:15 +0000 |
commit | b54d9905a167867a2655910799573378aff2ce89 (patch) | |
tree | e11c129d50e07c288d08a04963068164d7174c05 /src/mongo/db/service_liaison_mongod.cpp | |
parent | 80f9a13324fc36b2deb400e5a185968f6fa8f64a (diff) | |
download | mongo-b54d9905a167867a2655910799573378aff2ce89.tar.gz |
SERVER-37456 Make the global CursorManager a decoration on ServiceContext
Diffstat (limited to 'src/mongo/db/service_liaison_mongod.cpp')
-rw-r--r-- | src/mongo/db/service_liaison_mongod.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/service_liaison_mongod.cpp b/src/mongo/db/service_liaison_mongod.cpp index 364ed83438c..91ec14ed274 100644 --- a/src/mongo/db/service_liaison_mongod.cpp +++ b/src/mongo/db/service_liaison_mongod.cpp @@ -66,9 +66,9 @@ LogicalSessionIdSet ServiceLiaisonMongod::getActiveOpSessions() const { return activeSessions; } -LogicalSessionIdSet ServiceLiaisonMongod::getOpenCursorSessions() const { +LogicalSessionIdSet ServiceLiaisonMongod::getOpenCursorSessions(OperationContext* opCtx) const { LogicalSessionIdSet cursorSessions; - CursorManager::getGlobalCursorManager()->appendActiveSessions(&cursorSessions); + CursorManager::get(opCtx)->appendActiveSessions(&cursorSessions); return cursorSessions; } @@ -98,7 +98,7 @@ ServiceContext* ServiceLiaisonMongod::_context() { std::pair<Status, int> ServiceLiaisonMongod::killCursorsWithMatchingSessions( OperationContext* opCtx, const SessionKiller::Matcher& matcher) { - return CursorManager::getGlobalCursorManager()->killCursorsWithMatchingSessions(opCtx, matcher); + return CursorManager::get(opCtx)->killCursorsWithMatchingSessions(opCtx, matcher); } } // namespace mongo |