summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog.h
diff options
context:
space:
mode:
authorJordi Serra Torrens <jordi.serra-torrens@mongodb.com>2022-11-22 12:02:41 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-11-22 12:45:55 +0000
commit1f85ed64c763b05d8477a386a1a36fc1520da9b2 (patch)
tree0efe2c0a826c708499221032965a4a6000316b92 /src/mongo/db/repl/oplog.h
parent32bb6bed252aff3aab0254f8b8f9de3ea7669398 (diff)
downloadmongo-1f85ed64c763b05d8477a386a1a36fc1520da9b2.tar.gz
SERVER-71367 Make getDocumentKey get the shardKeyPattern from collectionPtr instead of asking the CSS every time
Diffstat (limited to 'src/mongo/db/repl/oplog.h')
-rw-r--r--src/mongo/db/repl/oplog.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/repl/oplog.h b/src/mongo/db/repl/oplog.h
index b67364b9653..9a4708082a0 100644
--- a/src/mongo/db/repl/oplog.h
+++ b/src/mongo/db/repl/oplog.h
@@ -130,7 +130,8 @@ std::vector<OpTime> logInsertOps(
MutableOplogEntry* oplogEntryTemplate,
std::vector<InsertStatement>::const_iterator begin,
std::vector<InsertStatement>::const_iterator end,
- std::function<boost::optional<ShardId>(const BSONObj& doc)> getDestinedRecipientFn);
+ std::function<boost::optional<ShardId>(const BSONObj& doc)> getDestinedRecipientFn,
+ const CollectionPtr& collectionPtr);
/**
* Returns the optime of the oplog entry written to the oplog.