[SERVER-80131] Change ErrmsgCommandDeprecated::errmsgRun to use DatabaseName obj Created: 16/Aug/23  Updated: 29/Oct/23  Resolved: 18/Aug/23

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

Type: Task Priority: Major - P3
Reporter: Sophia Tan Assignee: Sophia Tan
Resolution: Fixed Votes: 0
Labels: ntdi_must_have
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-79990 Change high level interface function ... Closed
Assigned Teams:
Serverless
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-08-21
Participants:

 Description   

Many sharding command classes override the `ErrmsgCommandDeprecated::errmsgRun` function which takes in a db string instead of a `DatabaseName` object. In the call site of this function, the code serializes a `DatabaseName` object to string. Soon after this, in the override function of some classes, the string is deserialized back to a `DatabaseName` object. It wastes the time. 

In this ticket,  we will change the function definition to take in `DatabaseName` object.



 Comments   
Comment by Githook User [ 18/Aug/23 ]

Author:

{'name': 'Sophia Tan', 'email': 'sophia_tll@hotmail.com', 'username': 'sophiatll'}

Message: SERVER-80131 Make errmsgRun use DatabaseName obj
Branch: master
https://github.com/mongodb/mongo/commit/bb89cce05c239e6d1398c07505187bde23b06079

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