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

TransactionClient API to use DatabaseName objects rather than strings

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Serverless
    • Fully Compatible
    • Server Serverless 2023-02-20

      We can use OpMsgRequestBuilder::create() rather than OpMsgRequest::fromDBAndBody when creating the opMsg request in SEPTransactionClient::runCommand - otherwise we may include the wrong serialized version of database name in the op msg request (we may include a prefix even when we're setting $tenant here). It works now because we always pass the non-prefixed db name to SEPTransactionClient::runCommand in this file by calling .db() on the DatabaseName.

      Change SEPTransactionClient::runCommand to use a DatabaseName instead of a StringData and internally call OpMsgRequestBuilder::create instead of OpMsgRequest::fromDBAndBody.

            Assignee:
            mathis.bessa@mongodb.com Mathis Bessa (Inactive)
            Reporter:
            mathis.bessa@mongodb.com Mathis Bessa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: