diff options
Diffstat (limited to 'src/mongo/db/pipeline/document_source_queue.cpp')
| -rw-r--r-- | src/mongo/db/pipeline/document_source_queue.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/document_source_queue.cpp b/src/mongo/db/pipeline/document_source_queue.cpp index a8cf1af797d..c724db5ae10 100644 --- a/src/mongo/db/pipeline/document_source_queue.cpp +++ b/src/mongo/db/pipeline/document_source_queue.cpp @@ -80,13 +80,12 @@ DocumentSource::GetNextResult DocumentSourceQueue::doGetNext() { return next; } -Value DocumentSourceQueue::serialize(const SerializationOptions& opts) const { +Value DocumentSourceQueue::serialize(boost::optional<ExplainOptions::Verbosity> explain) const { ValueArrayStream vals; for (auto elem : _queue) { vals << elem.getDocument().getOwned(); } - // We treat the queue's documents as one literal in the context of redaction. - return Value(DOC(kStageName << opts.serializeLiteral(vals.done()))); + return Value(DOC(kStageName << vals.done())); } } // namespace mongo |
