From a0c02d2bb236c60a5522ee3f8ae5389371718e34 Mon Sep 17 00:00:00 2001 From: George Wangensteen Date: Tue, 19 Nov 2024 12:23:24 -0500 Subject: [PATCH] SERVER-97359 Tag BatchedDeletes ServerStatusSection with the shard role (#29359) GitOrigin-RevId: 94adde5b2b89ff2fdb00636dc339fdff65eb96e2 --- src/mongo/db/exec/batched_delete_stage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mongo/db/exec/batched_delete_stage.cpp b/src/mongo/db/exec/batched_delete_stage.cpp index 8d0a8503269..51f8b824d05 100644 --- a/src/mongo/db/exec/batched_delete_stage.cpp +++ b/src/mongo/db/exec/batched_delete_stage.cpp @@ -132,7 +132,8 @@ struct BatchedDeletesSSS : ServerStatusSection { AtomicWord timeInBatchMillis{0}; AtomicWord refetchesDueToYield{0}; }; -auto& batchedDeletesSSS = *ServerStatusSectionBuilder("batchedDeletes"); +auto& batchedDeletesSSS = + *ServerStatusSectionBuilder("batchedDeletes").forShard(); // Wrapper for write_stage_common::ensureStillMatches() which also updates the 'refetchesDueToYield' // serverStatus metric. As with ensureStillMatches, if false is returned, the WoringSetMember