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

remove std::function reference from repl::logInsertOps

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Execution Team 2023-04-17

    Description

      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).

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: