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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_sample.cpp b/src/mongo/db/pipeline/document_source_sample.cpp
index 6f3f95d16f1..1b5cb79ec7f 100644
--- a/src/mongo/db/pipeline/document_source_sample.cpp
+++ b/src/mongo/db/pipeline/document_source_sample.cpp
@@ -136,7 +136,7 @@ boost::optional<DocumentSource::DistributedPlanLogic> DocumentSourceSample::dist
// just used to communicate ascending/descending information. A pattern like {$meta: "randVal"}
// is neither ascending nor descending, and so will not be useful when constructing the merging
// logic.
- logic.inputSortPattern = BSON("$rand" << -1);
+ logic.mergeSortPattern = BSON("$rand" << -1);
return logic;
}
} // namespace mongo