diff options
author | Brett Nawrocki <brett.nawrocki@mongodb.com> | 2022-04-14 22:17:07 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-04-14 23:40:42 +0000 |
commit | 54dbf25fc257904e66e767fdf46e69759448a36e (patch) | |
tree | 8f5256e693a9afa13c36d38245270f6c23849d5b /src/mongo/db/s | |
parent | dd0fe8486e5e8a182c53e33aba38bbbad270dea2 (diff) | |
download | mongo-54dbf25fc257904e66e767fdf46e69759448a36e.tar.gz |
SERVER-64372 Clean up some wording in comments and logs
Diffstat (limited to 'src/mongo/db/s')
-rw-r--r-- | src/mongo/db/s/resharding/resharding_metrics_helpers.cpp | 5 | ||||
-rw-r--r-- | src/mongo/db/s/sharding_data_transform_instance_metrics_test.cpp | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/s/resharding/resharding_metrics_helpers.cpp b/src/mongo/db/s/resharding/resharding_metrics_helpers.cpp index a056596d2e7..cd6ca6d32c2 100644 --- a/src/mongo/db/s/resharding/resharding_metrics_helpers.cpp +++ b/src/mongo/db/s/resharding/resharding_metrics_helpers.cpp @@ -81,9 +81,8 @@ void onCriticalSectionError(OperationContext* opCtx, const StaleConfigInfo& info onCriticalSectionErrorThrows(opCtx, info); } catch (const DBException& e) { LOGV2(6437201, - "Exception while recording resharding metrics after an operation failure due to the " - "critical section being held", - "Status"_attr = redact(e.toStatus())); + "Unable to record resharding critical section metrics for the current operation", + "reason"_attr = redact(e.toStatus())); } } diff --git a/src/mongo/db/s/sharding_data_transform_instance_metrics_test.cpp b/src/mongo/db/s/sharding_data_transform_instance_metrics_test.cpp index 0ffa17ea88e..68b3379a3be 100644 --- a/src/mongo/db/s/sharding_data_transform_instance_metrics_test.cpp +++ b/src/mongo/db/s/sharding_data_transform_instance_metrics_test.cpp @@ -204,7 +204,7 @@ TEST_F(ShardingDataTransformInstanceMetricsTest, DonorIncrementWritesDuringCriti TEST_F(ShardingDataTransformInstanceMetricsTest, CurrentOpReportsCriticalSectionTime) { const auto roles = {Role::kDonor, Role::kCoordinator}; for (const auto& role : roles) { - LOGV2(6437200, "CurrentOpReportsCriticalSectionTime", "Role"_attr = role); + LOGV2(6437200, "CurrentOpReportsCriticalSectionTime", "role"_attr = role); constexpr auto kFiveSeconds = Milliseconds(5000); auto uuid = UUID::gen(); const auto& clock = getClockSource(); |