summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/resharding/resharding_oplog_application.h
diff options
context:
space:
mode:
authorHaley Connelly <haley.connelly@mongodb.com>2021-06-17 20:11:33 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-07-09 18:07:25 +0000
commit28bd2d76e81aca35b300efb48010460e7d441162 (patch)
tree892795e5173292672526de5a6885e67afac048e0 /src/mongo/db/s/resharding/resharding_oplog_application.h
parent95b18771c85283900f7a992b7eda350b8a3d6067 (diff)
downloadmongo-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.h6
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