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

Change Shard::runCommand* functions to use DatabaseName obj

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Serverless
    • Fully Compatible

      These `Shard::runCommand*` functions are called by a lot of sharding code. In this ticket, we will change them to use `DatabaseName` obj instead of string db name and serialize the object to string inside the functions.

      The motivation is to decrease the code places of calling `DatabaseNameUtil::serialize` and `db_forSharding` in sharding code.

            Assignee:
            backlog-server-serverless [DO NOT USE] Backlog - Server Serverless (Inactive)
            Reporter:
            sophia.tan@mongodb.com Sophia Tan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: