summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_entry_point_common.h
diff options
context:
space:
mode:
authorBrett Nawrocki <brett.nawrocki@mongodb.com>2022-03-23 20:55:11 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-04-14 20:55:48 +0000
commit37deca965953bf21b38d5e3572e46e102b3badc6 (patch)
treed68d633aabc548905b7e9ac0c598d86a3c4ec729 /src/mongo/db/service_entry_point_common.h
parent576ea084ea887f3f6bd1dd1f8aa12c1af33487d1 (diff)
downloadmongo-37deca965953bf21b38d5e3572e46e102b3badc6.tar.gz
SERVER-64372 Add parity $currentOp resharding donor fields
Track and report the following fields in ShardingDataTransformInstanceMetrics for resharding $currentOp: countWritesDuringCriticalSection totalCriticalSectionTimeElapsedSecs
Diffstat (limited to 'src/mongo/db/service_entry_point_common.h')
-rw-r--r--src/mongo/db/service_entry_point_common.h4
1 files changed, 4 insertions, 0 deletions
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<PolymorphicScoped>