-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Execution Team 2023-04-17
repl::logInsertOps() accepts getDestinedRecipientFn which is defined by the only caller (in OpObserverImpl) to be a wrapper around ShardingWriteRouter::getReshardingDestinedRecipient(). We make this dependency clearer by replacing the std::function with a direct call to ShardingWriteRouter without incurring any additional explicit link time dependency on shard_role_api (since the library containing oplog.cpp has an existing dependency on shard_role).
- is related to
-
SERVER-53679 No-op for filling in destined recipient for insert oplog entries adds overhead on shardsvrs not running resharding
- Closed
-
SERVER-49822 Add destined recipient to oplog entries from inserts
- Closed
-
SERVER-74563 Streamline logical branches in opObserverImpl::onInserts
- Closed