summaryrefslogtreecommitdiff
path: root/src/mongo/db/cursor_manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/cursor_manager.cpp')
-rw-r--r--src/mongo/db/cursor_manager.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/cursor_manager.cpp b/src/mongo/db/cursor_manager.cpp
index 0b85ccee4ed..392b0891697 100644
--- a/src/mongo/db/cursor_manager.cpp
+++ b/src/mongo/db/cursor_manager.cpp
@@ -317,16 +317,15 @@ std::vector<GenericCursor> CursorManager::getAllCursors(OperationContext* opCtx)
return cursors;
}
-std::pair<Status, int> CursorManager::killCursorsWithMatchingSessions(
- OperationContext* opCtx, const SessionKiller::Matcher& matcher) {
+Status CursorManager::killCursorsWithMatchingSessions(OperationContext* opCtx,
+ const SessionKiller::Matcher& matcher) {
auto eraser = [&](CursorManager& mgr, CursorId id) {
uassertStatusOK(mgr.eraseCursor(opCtx, id, true));
};
auto visitor = makeKillSessionsCursorManagerVisitor(opCtx, matcher, std::move(eraser));
globalCursorIdCache->visitAllCursorManagers(opCtx, &visitor);
-
- return std::make_pair(visitor.getStatus(), visitor.getCursorsKilled());
+ return visitor.getStatus();
}
std::size_t CursorManager::timeoutCursorsGlobal(OperationContext* opCtx, Date_t now) {