diff options
author | Haley Connelly <haley.connelly@mongodb.com> | 2021-06-17 20:11:33 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-07-09 18:07:25 +0000 |
commit | 28bd2d76e81aca35b300efb48010460e7d441162 (patch) | |
tree | 892795e5173292672526de5a6885e67afac048e0 /src/mongo/db/s/resharding/resharding_oplog_application.h | |
parent | 95b18771c85283900f7a992b7eda350b8a3d6067 (diff) | |
download | mongo-28bd2d76e81aca35b300efb48010460e7d441162.tar.gz |
SERVER-57760 Introduce resharding dedicated OpCounters and use them in
ReshardingOplogApplier
Diffstat (limited to 'src/mongo/db/s/resharding/resharding_oplog_application.h')
-rw-r--r-- | src/mongo/db/s/resharding/resharding_oplog_application.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/s/resharding/resharding_oplog_application.h b/src/mongo/db/s/resharding/resharding_oplog_application.h index 114a3637367..5b84e92e4bd 100644 --- a/src/mongo/db/s/resharding/resharding_oplog_application.h +++ b/src/mongo/db/s/resharding/resharding_oplog_application.h @@ -48,6 +48,7 @@ class Collection; class CollectionPtr; class NamespaceString; class OperationContext; +class ReshardingMetrics; /** * Applies an operation from an oplog entry using special rules that apply to resharding. @@ -58,7 +59,8 @@ public: std::vector<NamespaceString> allStashNss, size_t myStashIdx, ShardId donorShardId, - ChunkManager sourceChunkMgr); + ChunkManager sourceChunkMgr, + ReshardingMetrics* metrics); /** * Wraps the op application in a writeConflictRetry loop and is responsible for creating and @@ -112,6 +114,8 @@ private: // The chunk manager for the source namespace and original shard key. const ChunkManager _sourceChunkMgr; + + ReshardingMetrics* _metrics; }; } // namespace mongo |