diff options
Diffstat (limited to 'src/mongo/db/pipeline/document_source_out.cpp')
| -rw-r--r-- | src/mongo/db/pipeline/document_source_out.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_out.cpp b/src/mongo/db/pipeline/document_source_out.cpp index 9b826fb3c89..a6188dfd382 100644 --- a/src/mongo/db/pipeline/document_source_out.cpp +++ b/src/mongo/db/pipeline/document_source_out.cpp @@ -210,8 +210,11 @@ boost::intrusive_ptr<DocumentSource> DocumentSourceOut::createFromBson( return create(targetNS, expCtx); } -Value DocumentSourceOut::serialize(boost::optional<ExplainOptions::Verbosity> explain) const { - return Value(DOC(kStageName << DOC("db" << _outputNs.db() << "coll" << _outputNs.coll()))); +Value DocumentSourceOut::serialize(const SerializationOptions& opts) const { + MutableDocument spec; + spec["coll"] = Value(opts.serializeIdentifier(_outputNs.coll())); + spec["db"] = Value(opts.serializeIdentifier(_outputNs.db())); + return Value(Document{{kStageName, spec.freezeToValue()}}); } void DocumentSourceOut::waitWhileFailPointEnabled() { |
