[SERVER-79990] Change high level interface function of sharding code to take in DatabaseName instead of string db Created: 14/Aug/23  Updated: 30/Aug/23  Resolved: 30/Aug/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Sophia Tan Assignee: [DO NOT USE] Backlog - Server Serverless (Inactive)
Resolution: Won't Do Votes: 0
Labels: ntdi_must_have
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-80130 Change Shard::runCommand* functions t... Closed
depends on SERVER-80131 Change ErrmsgCommandDeprecated::errms... Closed
Assigned Teams:
Serverless
Participants:

 Description   

In this ticket, we will change high level interface function of sharding code to take in DatabaseName instead of string db.

  • the function is a high level interface function
  • if we already have nss or DatabaseName object in its call sites, we need to change it.
  • Otherwise, if this function is called from non-shard code, we also need to change it.
    for example, the `ScopedBaseDDLLock` and `executeCommandAgainstDatabasePrimary` function should be changed.

We will not change the low level functions of sharding code (eg, `logEnableSharding`) in this ticket.



 Comments   
Comment by Mathis Bessa [ 30/Aug/23 ]

The work has already been done in multiple tickets such as :

If we still have anything that needs refactoring we can open a new ticket.

Generated at Thu Feb 08 06:42:25 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.