summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/collection_metadata.h
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/db/s/collection_metadata.h
parent0273057add47dde4575aa794edc07f8c7520d0d8 (diff)
downloadmongo-d881f91800f3d213df8348a6acacdad9dff174da.tar.gz
SERVER-31540 Get rid of boost::optional<UUID> from sharding code
Diffstat (limited to 'src/mongo/db/s/collection_metadata.h')
-rw-r--r--src/mongo/db/s/collection_metadata.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/collection_metadata.h b/src/mongo/db/s/collection_metadata.h
index aeae9303eb5..4cf162648b5 100644
--- a/src/mongo/db/s/collection_metadata.h
+++ b/src/mongo/db/s/collection_metadata.h
@@ -151,7 +151,7 @@ public:
return _cm->uuidMatches(uuid);
}
- boost::optional<UUID> getUUID() const {
+ const UUID& getUUID() const {
return _cm->getUUID();
}