diff options
Diffstat (limited to 'src/mongo/db/pipeline/document_source_sort.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_sort.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document_source_sort.cpp b/src/mongo/db/pipeline/document_source_sort.cpp index fe32168c170..09afc8fc2e6 100644 --- a/src/mongo/db/pipeline/document_source_sort.cpp +++ b/src/mongo/db/pipeline/document_source_sort.cpp @@ -112,7 +112,7 @@ DocumentSourceSort::DocumentSourceSort(const boost::intrusive_ptr<ExpressionCont pExpCtx->allowDiskUse}), // The SortKeyGenerator expects the expressions to be serialized in order to detect a sort // by a metadata field. - _sortKeyGen({sortOrder, pExpCtx->getCollator()}) { + _sortKeyGen({{sortOrder, pExpCtx}, pExpCtx->getCollator()}) { uassert(15976, "$sort stage must have at least one sort key", !_sortExecutor->sortPattern().empty()); |