diff options
-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()))); } } |