[SERVER-67460] Change BasicCommandWithRequestParser to use DatabaseName Created: 22/Jun/22  Updated: 29/Oct/23  Resolved: 12/Jul/22

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

Type: Task Priority: Major - P3
Reporter: Janna Golden Assignee: Fernando Lisboa (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2022-07-11, Server Serverless 2022-07-25
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 11/Jul/22 ]

Author:

{'name': 'Fernando Lisboa', 'email': 'fernando.lisboa@mongodb.com', 'username': 'fernandolis10'}

Message: SERVER-67460 Change BasicCommandWithRequestParser to use DatabaseName
Branch: master
https://github.com/mongodb/mongo/commit/408f57e601d417ee79761e00f2127ad9226c5baf

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