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