diff options
author | Mathias Stearn <mathias@10gen.com> | 2014-01-14 15:51:56 -0500 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2014-01-21 12:55:49 -0500 |
commit | 8bab6b0c9fad64286c22d928bbe8ebfae7e8b2c4 (patch) | |
tree | 16049521a641f796c9dc749676f294b38173e58d /src/mongo/db/pipeline | |
parent | 51e761f1f76581f6c43cd81cb132c3f5c39c12d3 (diff) | |
download | mongo-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.cpp | 2 |
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, |