summaryrefslogtreecommitdiff
path: root/src/mongo/crypto
diff options
context:
space:
mode:
authorBilly Donahue <BillyDonahue@users.noreply.github.com>2022-07-27 18:17:24 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-07-27 19:38:08 +0000
commit958ad9abfc80861d3f43f44da694e83464b01e1d (patch)
treeca14e7097c1cb8ab20dfad7fa6888511f0226650 /src/mongo/crypto
parentf8a1ac19be6279e7ace012dafa8cfcaa028d49e1 (diff)
downloadmongo-958ad9abfc80861d3f43f44da694e83464b01e1d.tar.gz
SERVER-68246 rewrite calls to boost::optional get and is_initialized
Diffstat (limited to 'src/mongo/crypto')
-rw-r--r--src/mongo/crypto/fle_tags.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/crypto/fle_tags.cpp b/src/mongo/crypto/fle_tags.cpp
index 4737ff13144..abad71d2b71 100644
--- a/src/mongo/crypto/fle_tags.cpp
+++ b/src/mongo/crypto/fle_tags.cpp
@@ -135,7 +135,7 @@ std::vector<PrfBlock> readTagsWithContention(const FLEStateCollectionReader& esc
// n => n inserts for this field value pair.
// none => compaction => query ESC for null document to find # of inserts.
auto insertCounter = ESCCollection::emuBinary(esc, escTag, escVal);
- if (insertCounter && insertCounter.get() == 0) {
+ if (insertCounter && insertCounter.value() == 0) {
return std::move(binaryTags);
}
@@ -208,11 +208,11 @@ std::vector<PrfBlock> readTags(const FLEStateCollectionReader& esc,
// The output of readTags will be used as the argument to a $in expression, so make sure we
// don't exceed the configured memory limit.
auto limit = static_cast<size_t>(internalQueryFLERewriteMemoryLimit.load());
- if (!cm || cm.get() == 0) {
+ if (!cm || cm.value() == 0) {
auto binaryTags = readTagsWithContention(esc, ecc, s, c, d, 0, limit, {});
}
std::vector<PrfBlock> binaryTags;
- for (auto i = 0; i <= cm.get(); i++) {
+ for (auto i = 0; i <= cm.value(); i++) {
binaryTags = readTagsWithContention(esc, ecc, s, c, d, i, limit, std::move(binaryTags));
}
return binaryTags;