Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-75787

remove std::function reference from repl::logInsertOps

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • 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).

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: