summaryrefslogtreecommitdiff
path: root/src/mongo/logv2
diff options
context:
space:
mode:
authorSara Golemon <sara.golemon@mongodb.com>2021-08-30 17:12:45 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-09-03 15:45:38 +0000
commit961822843344ade278ee5959001d9caee18f3caa (patch)
treed8c8fa375f02b8fd5b480c1319489b86350ab13e /src/mongo/logv2
parent4db5eceda2cff697f35c84cd08232bac8c33beec (diff)
downloadmongo-961822843344ade278ee5959001d9caee18f3caa.tar.gz
SERVER-59609 Do not shadow function parameter in tenantID handler
Diffstat (limited to 'src/mongo/logv2')
-rw-r--r--src/mongo/logv2/log_detail.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/logv2/log_detail.cpp b/src/mongo/logv2/log_detail.cpp
index 64fe191e95f..a5bdb00f866 100644
--- a/src/mongo/logv2/log_detail.cpp
+++ b/src/mongo/logv2/log_detail.cpp
@@ -173,11 +173,11 @@ void doLogImpl(int32_t id,
attrs)));
if (auto fn = getTenantID()) {
- if (auto id = fn()) {
+ if (auto tenant = fn()) {
record.attribute_values().insert(
attributes::tenant(),
boost::log::attribute_value(
- new boost::log::attributes::attribute_value_impl<OID>(id.get())));
+ new boost::log::attributes::attribute_value_impl<OID>(tenant.get())));
}
}