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

Add baton support to async_rpc command senders

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Service Arch 2022-12-26, Service Arch 2022-11-14, Service Arch 2022-11-28, Service Arch 2022-12-12, Service Arch 2023-01-09

      The overloads of async_rpc::sendCommand and async_rpc::sendHedgedCommand that accept an OperationContext should also optionally accept a baton, in addition to a TaskExecutor. When a baton is provided, it should be used to run continuations that the rpc layer schedules before and after sending a command to the network via TaskExecutor::scheduleRemoteCommand. It should additionally be passed to the lower networking layers so that it can be used for polling if it is a NetworkingBaton. 

            Assignee:
            george.wangensteen@mongodb.com George Wangensteen
            Reporter:
            george.wangensteen@mongodb.com George Wangensteen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: