summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_entry_point_common.cpp
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/db/service_entry_point_common.cpp
parentf8a1ac19be6279e7ace012dafa8cfcaa028d49e1 (diff)
downloadmongo-958ad9abfc80861d3f43f44da694e83464b01e1d.tar.gz
SERVER-68246 rewrite calls to boost::optional get and is_initialized
Diffstat (limited to 'src/mongo/db/service_entry_point_common.cpp')
-rw-r--r--src/mongo/db/service_entry_point_common.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/service_entry_point_common.cpp b/src/mongo/db/service_entry_point_common.cpp
index 1b76291285e..d2b327fad3e 100644
--- a/src/mongo/db/service_entry_point_common.cpp
+++ b/src/mongo/db/service_entry_point_common.cpp
@@ -323,7 +323,7 @@ StatusWith<repl::ReadConcernArgs> _extractReadConcern(OperationContext* opCtx,
const auto readConcernSource = rwcDefaults.getDefaultReadConcernSource();
customDefaultWasApplied =
(readConcernSource &&
- readConcernSource.get() == DefaultReadConcernSourceEnum::kGlobal);
+ readConcernSource.value() == DefaultReadConcernSourceEnum::kGlobal);
applyDefaultReadConcern(*rcDefault);
}
@@ -1408,7 +1408,7 @@ void ExecCommandDatabase::_initiateCommand() {
str::stream() << "Command " << command->getName()
<< " is not supported in multitenancy mode",
command->allowedWithSecurityToken());
- _tokenAuthorizationSessionGuard.emplace(opCtx, request.validatedTenancyScope.get());
+ _tokenAuthorizationSessionGuard.emplace(opCtx, request.validatedTenancyScope.value());
}
if (isHello()) {