summaryrefslogtreecommitdiff
path: root/src/mongo/db/cursor_manager.h
diff options
context:
space:
mode:
authorJason Carey <jcarey@argv.me>2017-11-07 13:30:14 -0500
committerJason Carey <jcarey@argv.me>2017-11-07 19:26:53 -0500
commit2c87a5e7d90a6dd998d098f85e5db486a555fe42 (patch)
treed4cdb819580a779b34347dfc6c20fba695cb7420 /src/mongo/db/cursor_manager.h
parent9d82100f7a0a4df9e797eef8f0fb3f6c66938771 (diff)
downloadmongo-2c87a5e7d90a6dd998d098f85e5db486a555fe42.tar.gz
SERVER-31565 Add stats about logical sessions background jobs to serverStatus
Diffstat (limited to 'src/mongo/db/cursor_manager.h')
-rw-r--r--src/mongo/db/cursor_manager.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mongo/db/cursor_manager.h b/src/mongo/db/cursor_manager.h
index add9d7384ba..9683728adab 100644
--- a/src/mongo/db/cursor_manager.h
+++ b/src/mongo/db/cursor_manager.h
@@ -28,6 +28,8 @@
#pragma once
+#include <utility>
+
#include "mongo/db/catalog/util/partitioned.h"
#include "mongo/db/clientcursor.h"
#include "mongo/db/cursor_id.h"
@@ -93,10 +95,11 @@ public:
static std::vector<GenericCursor> getAllCursors(OperationContext* opCtx);
/**
- * Kills cursors with matching logical sessions.
+ * Kills cursors with matching logical sessions. Returns a pair with the overall
+ * Status of the operation and the number of cursors successfully killed.
*/
- static Status killCursorsWithMatchingSessions(OperationContext* opCtx,
- const SessionKiller::Matcher& matcher);
+ static std::pair<Status, int> killCursorsWithMatchingSessions(
+ OperationContext* opCtx, const SessionKiller::Matcher& matcher);
CursorManager(NamespaceString nss);