summaryrefslogtreecommitdiff
path: root/src/mongo/db/clientcursor.h
diff options
context:
space:
mode:
authorTed Tuckman <ted.tuckman@mongodb.com>2018-09-17 11:25:15 -0400
committerTed Tuckman <ted.tuckman@mongodb.com>2018-09-28 11:46:03 -0400
commita73b2fc77d72a06380826259620f105e179a4c5c (patch)
tree9d6b43cc70897531a148270098274da49c67e5ea /src/mongo/db/clientcursor.h
parentd8e10f2dcc4554c74cf1da9d40557233cad70fb1 (diff)
downloadmongo-a73b2fc77d72a06380826259620f105e179a4c5c.tar.gz
SERVER-37003 Add activeCursor field to curOp for getMore
Diffstat (limited to 'src/mongo/db/clientcursor.h')
-rw-r--r--src/mongo/db/clientcursor.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/clientcursor.h b/src/mongo/db/clientcursor.h
index cc698e12bfd..7602af622d0 100644
--- a/src/mongo/db/clientcursor.h
+++ b/src/mongo/db/clientcursor.h
@@ -186,6 +186,12 @@ public:
_pos = n;
}
+ /**
+ * Returns a generic cursor containing diagnostics about this cursor.
+ * The caller must either have this cursor pinned or hold a mutex from the cursor manager.
+ */
+ GenericCursor toGenericCursor() const;
+
//
// Timing.
//