summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/pipeline.h
diff options
context:
space:
mode:
authorJacob Evans <jacob.evans@10gen.com>2019-03-20 11:42:07 -0400
committerJacob Evans <jacob.evans@10gen.com>2019-04-04 14:26:34 -0400
commit33598e48f9be86c16990051934d4e72f073c2b86 (patch)
treeeb1fc7f64add6c5f23d110059554b1b13896a2e2 /src/mongo/db/pipeline/pipeline.h
parenteda597a9970ae8f1f7a4c4ede0c0f5802c612d35 (diff)
downloadmongo-33598e48f9be86c16990051934d4e72f073c2b86.tar.gz
SERVER-40312 Create a generic tree for pipeline metatdata
Diffstat (limited to 'src/mongo/db/pipeline/pipeline.h')
-rw-r--r--src/mongo/db/pipeline/pipeline.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/pipeline.h b/src/mongo/db/pipeline/pipeline.h
index 849143dd94e..05e2b77977d 100644
--- a/src/mongo/db/pipeline/pipeline.h
+++ b/src/mongo/db/pipeline/pipeline.h
@@ -278,6 +278,10 @@ public:
return _sources;
}
+ SourceContainer& getSources() {
+ return _sources;
+ }
+
/**
* Removes and returns the first stage of the pipeline. Returns nullptr if the pipeline is
* empty.