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