From 37deca965953bf21b38d5e3572e46e102b3badc6 Mon Sep 17 00:00:00 2001 From: Brett Nawrocki Date: Wed, 23 Mar 2022 20:55:11 +0000 Subject: SERVER-64372 Add parity $currentOp resharding donor fields Track and report the following fields in ShardingDataTransformInstanceMetrics for resharding $currentOp: countWritesDuringCriticalSection totalCriticalSectionTimeElapsedSecs --- src/mongo/db/service_entry_point_common.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mongo/db/service_entry_point_common.h') diff --git a/src/mongo/db/service_entry_point_common.h b/src/mongo/db/service_entry_point_common.h index b38ea9b61bd..9fa9dfa886c 100644 --- a/src/mongo/db/service_entry_point_common.h +++ b/src/mongo/db/service_entry_point_common.h @@ -93,6 +93,10 @@ struct ServiceEntryPointCommon { OperationContext* opCtx, const ShardCannotRefreshDueToLocksHeldInfo& refreshInfo) const noexcept = 0; + virtual void handleReshardingCriticalSectionMetrics(OperationContext* opCtx, + const StaleConfigInfo& se) const + noexcept = 0; + virtual void resetLockerState(OperationContext* opCtx) const noexcept = 0; MONGO_WARN_UNUSED_RESULT_FUNCTION virtual std::unique_ptr -- cgit v1.2.1