summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/run_aggregate.cpp
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2023-02-09 12:08:10 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-02-13 16:55:03 +0000
commit78b5bb22426142e49b30c91cff0f1b6e99725047 (patch)
tree7412d4ee181a221884e52126e460eeb40b895776 /src/mongo/db/commands/run_aggregate.cpp
parent13e038d492a20bb52c7f3322603815f503020cf5 (diff)
downloadmongo-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.cpp4
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,