summaryrefslogtreecommitdiff
path: root/src/mongo/s/query
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2021-10-20 16:36:13 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-10-20 17:24:22 +0000
commitd881f91800f3d213df8348a6acacdad9dff174da (patch)
tree09f3781ebb7db9caca98a8153aec8aa21d6f15dd /src/mongo/s/query
parent0273057add47dde4575aa794edc07f8c7520d0d8 (diff)
downloadmongo-d881f91800f3d213df8348a6acacdad9dff174da.tar.gz
SERVER-31540 Get rid of boost::optional<UUID> from sharding code
Diffstat (limited to 'src/mongo/s/query')
-rw-r--r--src/mongo/s/query/cluster_aggregation_planner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/s/query/cluster_aggregation_planner.cpp b/src/mongo/s/query/cluster_aggregation_planner.cpp
index e5f0c36e552..c9867f4eb78 100644
--- a/src/mongo/s/query/cluster_aggregation_planner.cpp
+++ b/src/mongo/s/query/cluster_aggregation_planner.cpp
@@ -788,7 +788,7 @@ std::pair<BSONObj, boost::optional<UUID>> getCollationAndUUID(
collectionIsNotSharded ? getUnshardedCollInfo(opCtx, cm->dbPrimary(), nss) : BSONObj();
// Return the collection UUID if available, or boost::none otherwise.
- const auto getUUID = [&]() -> auto {
+ const auto getUUID = [&]() -> boost::optional<UUID> {
if (collectionIsSharded) {
return cm->getUUID();
} else {