summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source.h
diff options
context:
space:
mode:
authorBernard Gorman <bernard.gorman@gmail.com>2017-11-13 05:12:02 +0000
committerBernard Gorman <bernard.gorman@gmail.com>2017-11-14 22:40:38 +0000
commitd0251ad19f1599ffe64d94c2a08c33de5de9144f (patch)
treeab371842ae67e762df5d82e750887acb32837628 /src/mongo/db/pipeline/document_source.h
parentde0b16077945eb6b6ec161b99f41c3222aade3b8 (diff)
downloadmongo-d0251ad19f1599ffe64d94c2a08c33de5de9144f.tar.gz
SERVER-31559 Merge GenericCursorManager into MongoProcessInterface
Diffstat (limited to 'src/mongo/db/pipeline/document_source.h')
-rw-r--r--src/mongo/db/pipeline/document_source.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/document_source.h b/src/mongo/db/pipeline/document_source.h
index c576fd5bda8..0ecd0fcf92a 100644
--- a/src/mongo/db/pipeline/document_source.h
+++ b/src/mongo/db/pipeline/document_source.h
@@ -42,6 +42,7 @@
#include "mongo/client/dbclientinterface.h"
#include "mongo/db/collection_index_usage_tracker.h"
#include "mongo/db/commands.h"
+#include "mongo/db/generic_cursor.h"
#include "mongo/db/jsobj.h"
#include "mongo/db/namespace_string.h"
#include "mongo/db/pipeline/dependencies.h"
@@ -850,6 +851,12 @@ public:
UUID collectionUUID,
const Document& documentKey) = 0;
+ /**
+ * Returns a vector of all local cursors.
+ */
+ virtual std::vector<GenericCursor> getCursors(
+ const boost::intrusive_ptr<ExpressionContext>& expCtx) const = 0;
+
// Add new methods as needed.
};