diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2021-10-20 16:36:13 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-10-20 17:24:22 +0000 |
commit | d881f91800f3d213df8348a6acacdad9dff174da (patch) | |
tree | 09f3781ebb7db9caca98a8153aec8aa21d6f15dd /src/mongo/s/query | |
parent | 0273057add47dde4575aa794edc07f8c7520d0d8 (diff) | |
download | mongo-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.cpp | 2 |
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 { |