summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_project.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2013-12-13 13:39:01 -0500
committerMathias Stearn <mathias@10gen.com>2013-12-18 19:09:17 -0500
commit170e563e4cfa069f2128379e7b997e6777e0ee99 (patch)
treed4cbc8451e1ee33b120004a867bfcb25bfdca62d /src/mongo/db/pipeline/document_source_project.cpp
parent3e707bcd22b7c0e8275d25bf8e8b28c3cec4cc67 (diff)
downloadmongo-170e563e4cfa069f2128379e7b997e6777e0ee99.tar.gz
SERVER-11675 Agg text support
To enable this, Documents now can store "metadata" that gets carried though the pipeline as long as the result is the same logical document. This includes crossing the shard-to-merger boundary.
Diffstat (limited to 'src/mongo/db/pipeline/document_source_project.cpp')
-rw-r--r--src/mongo/db/pipeline/document_source_project.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/document_source_project.cpp b/src/mongo/db/pipeline/document_source_project.cpp
index ff1a3a05a27..c6708524f45 100644
--- a/src/mongo/db/pipeline/document_source_project.cpp
+++ b/src/mongo/db/pipeline/document_source_project.cpp
@@ -58,6 +58,7 @@ namespace mongo {
/* create the result document */
const size_t sizeHint = pEO->getSizeHint();
MutableDocument out (sizeHint);
+ out.copyMetaDataFrom(*input);
/*
Use the ExpressionObject to create the base result.