summaryrefslogtreecommitdiff
path: root/src/mongo/db/cursor_manager.h
diff options
context:
space:
mode:
authorsamantharitter <samantha.ritter@10gen.com>2017-10-18 18:11:25 -0400
committersamantharitter <samantha.ritter@10gen.com>2017-11-01 12:47:44 -0400
commit7cd8508b06e1574bea211dff054855b70b7cc20e (patch)
treefa2767c3cccbd8ac3fecb004526f9200f440ac43 /src/mongo/db/cursor_manager.h
parentef8db41490338502892d2e546e9a745d529ad614 (diff)
downloadmongo-7cd8508b06e1574bea211dff054855b70b7cc20e.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);