diff options
author | Sara Golemon <sara.golemon@mongodb.com> | 2021-08-30 17:12:45 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-09-03 15:45:38 +0000 |
commit | 961822843344ade278ee5959001d9caee18f3caa (patch) | |
tree | d8c8fa375f02b8fd5b480c1319489b86350ab13e /src/mongo/logv2 | |
parent | 4db5eceda2cff697f35c84cd08232bac8c33beec (diff) | |
download | mongo-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.cpp | 4 |
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()))); } } |