summaryrefslogtreecommitdiff
path: root/src/mongo/embedded
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/embedded
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/embedded')
-rw-r--r--src/mongo/embedded/oplog_writer_embedded.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/embedded/oplog_writer_embedded.h b/src/mongo/embedded/oplog_writer_embedded.h
index e3eff502050..0681991d0be 100644
--- a/src/mongo/embedded/oplog_writer_embedded.h
+++ b/src/mongo/embedded/oplog_writer_embedded.h
@@ -51,8 +51,8 @@ public:
repl::MutableOplogEntry* oplogEntryTemplate,
std::vector<InsertStatement>::const_iterator begin,
std::vector<InsertStatement>::const_iterator end,
- std::function<boost::optional<ShardId>(const BSONObj& doc)> getDestinedRecipientFn)
- override {
+ std::function<boost::optional<ShardId>(const BSONObj& doc)> getDestinedRecipientFn,
+ const CollectionPtr& collectionPtr) override {
return {};
}