summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2014-01-14 15:51:56 -0500
committerMathias Stearn <mathias@10gen.com>2014-01-21 12:55:49 -0500
commit8bab6b0c9fad64286c22d928bbe8ebfae7e8b2c4 (patch)
tree16049521a641f796c9dc749676f294b38173e58d /src/mongo/db/pipeline
parent51e761f1f76581f6c43cd81cb132c3f5c39c12d3 (diff)
downloadmongo-8bab6b0c9fad64286c22d928bbe8ebfae7e8b2c4.tar.gz
SERVER-11413 Fix agg DocumentSourceCursor explain format
All stages are supposed to explain as {$stageName: <STUFF>}. The wrapping object with the stage name was accidentally removed in commit 54cee6c07af4c2973f34b25de271f7258dafbc84.
Diffstat (limited to 'src/mongo/db/pipeline')
-rw-r--r--src/mongo/db/pipeline/document_source_cursor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_cursor.cpp b/src/mongo/db/pipeline/document_source_cursor.cpp
index d55740b0f25..bdc76a1f516 100644
--- a/src/mongo/db/pipeline/document_source_cursor.cpp
+++ b/src/mongo/db/pipeline/document_source_cursor.cpp
@@ -248,7 +248,7 @@ namespace {
}
- return out.freezeToValue();
+ return Value(DOC(getSourceName() << out.freezeToValue()));
}
DocumentSourceCursor::DocumentSourceCursor(const string& ns,