[SERVER-76918] Change bucket_catalog::clear to take in DatabaseName object instead of StringData object Created: 08/May/23  Updated: 29/Oct/23  Resolved: 17/May/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_drop_off_tenant, ntdi_must_have
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-65456 Make NamespaceString::db_deprecated()... Closed
Related
is related to SERVER-77206 Add a jstest for testing time series ... Open
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2023-05-29
Participants:
Story Points: 1

 Description   

The call sites of bucket_catalog::clear function are easy to drop off the tenant information when clearing buckets for the given database because the input parameter is a StringData object.

We should change it to take in DatabaseName object to force the call sites pass in the entire db name information including tenant id.



 Comments   
Comment by Githook User [ 17/May/23 ]

Author:

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

Message: SERVER-76918 Change bucket_catalog::clear to take in DatabaseName object instead of StringData object
Branch: master
https://github.com/mongodb/mongo/commit/068c90d91fd45305bd6ee3b6f9172700516aaa85

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