diff options
Diffstat (limited to 'src/mongo/db/pipeline/document_source_limit.cpp')
| -rw-r--r-- | src/mongo/db/pipeline/document_source_limit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_limit.cpp b/src/mongo/db/pipeline/document_source_limit.cpp index f50e795897d..2347e185a55 100644 --- a/src/mongo/db/pipeline/document_source_limit.cpp +++ b/src/mongo/db/pipeline/document_source_limit.cpp @@ -88,8 +88,8 @@ DocumentSource::GetNextResult DocumentSourceLimit::doGetNext() { return nextInput; } -Value DocumentSourceLimit::serialize(boost::optional<ExplainOptions::Verbosity> explain) const { - return Value(Document{{getSourceName(), _limit}}); +Value DocumentSourceLimit::serialize(const SerializationOptions& opts) const { + return Value(Document{{getSourceName(), opts.serializeLiteral(_limit)}}); } intrusive_ptr<DocumentSourceLimit> DocumentSourceLimit::create( |
