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

Change BasicCommandWithRequestParser to use DatabaseName

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Server Serverless 2022-07-11, Server Serverless 2022-07-25

      Change BasicCommandWithRequestParser::runWithRequestParser to take in DatabaseName, and then ChangeBasicCommandWithRequestParser::runWithReplyBuilder can pass the DatabaseName object to it directly.

      Also, change BasicCommandWithRequestParser::_parseRequest to take in a DatabaseName object. If we've already done the work to pass a tenantId to the BSONObj parse function, pass the tenantId on the DatabaseName object to RequestType::parse() - otherwise can do this in a future ticket.

      There are ~8 commands that override BasicCommandWithRequestParser::runWithRequestParser, we'll need to change these to use DatabaseName.

            Assignee:
            fernando.lisboa@mongodb.com Fernando Lisboa (Inactive)
            Reporter:
            janna.golden@mongodb.com Janna Golden
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: