summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_sample.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/document_source_sample.cpp')
-rw-r--r--src/mongo/db/pipeline/document_source_sample.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_sample.cpp b/src/mongo/db/pipeline/document_source_sample.cpp
index 24e86b38cba..40d5f47e3ad 100644
--- a/src/mongo/db/pipeline/document_source_sample.cpp
+++ b/src/mongo/db/pipeline/document_source_sample.cpp
@@ -83,8 +83,8 @@ DocumentSource::GetNextResult DocumentSourceSample::doGetNext() {
return _sortStage->getNext();
}
-Value DocumentSourceSample::serialize(boost::optional<ExplainOptions::Verbosity> explain) const {
- return Value(DOC(kStageName << DOC("size" << _size)));
+Value DocumentSourceSample::serialize(const SerializationOptions& opts) const {
+ return Value(DOC(kStageName << DOC("size" << opts.serializeLiteral(_size))));
}
namespace {