diff options
author | samantharitter <samantha.ritter@10gen.com> | 2017-10-18 18:11:25 -0400 |
---|---|---|
committer | samantharitter <samantha.ritter@10gen.com> | 2017-11-01 12:47:44 -0400 |
commit | 7cd8508b06e1574bea211dff054855b70b7cc20e (patch) | |
tree | fa2767c3cccbd8ac3fecb004526f9200f440ac43 /src/mongo/db/cursor_manager.h | |
parent | ef8db41490338502892d2e546e9a745d529ad614 (diff) | |
download | mongo-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.h | 9 |
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); |