diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2023-02-09 12:08:10 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-02-13 16:55:03 +0000 |
commit | 78b5bb22426142e49b30c91cff0f1b6e99725047 (patch) | |
tree | 7412d4ee181a221884e52126e460eeb40b895776 /src/mongo/db/commands/run_aggregate.cpp | |
parent | 13e038d492a20bb52c7f3322603815f503020cf5 (diff) | |
download | mongo-78b5bb22426142e49b30c91cff0f1b6e99725047.tar.gz |
SERVER-73780 Make CollectionPtr constructor explicit
Diffstat (limited to 'src/mongo/db/commands/run_aggregate.cpp')
-rw-r--r-- | src/mongo/db/commands/run_aggregate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/run_aggregate.cpp b/src/mongo/db/commands/run_aggregate.cpp index 8868ce91a8b..9b5e718643c 100644 --- a/src/mongo/db/commands/run_aggregate.cpp +++ b/src/mongo/db/commands/run_aggregate.cpp @@ -833,7 +833,7 @@ Status runAggregate(OperationContext* opCtx, // collation. We do not inherit the collection's default collation or UUID, since // the stream may be resuming from a point before the current UUID existed. auto [collator, match] = PipelineD::resolveCollator( - opCtx, request.getCollation().get_value_or(BSONObj()), nullptr); + opCtx, request.getCollation().get_value_or(BSONObj()), CollectionPtr()); collatorToUse.emplace(std::move(collator)); collatorToUseMatchesDefault = match; @@ -853,7 +853,7 @@ Status runAggregate(OperationContext* opCtx, AutoStatsTracker::LogMode::kUpdateTopAndCurOp, 0); auto [collator, match] = PipelineD::resolveCollator( - opCtx, request.getCollation().get_value_or(BSONObj()), nullptr); + opCtx, request.getCollation().get_value_or(BSONObj()), CollectionPtr()); collatorToUse.emplace(std::move(collator)); collatorToUseMatchesDefault = match; tassert(6235101, |