[SERVER-84311] Make NamespaceString inherit from DatabaseName Created: 19/Dec/23  Updated: 23/Jan/24  Resolved: 23/Jan/24

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

Type: Task Priority: Major - P3
Reporter: Didier Nadeau Assignee: Didier Nadeau
Resolution: Fixed Votes: 0
Labels: ntdi_performance
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-81569 Improve performance of NamespaceString In Code Review
Backwards Compatibility: Fully Compatible
Sprint: Service Arch 2024-01-08, Service Arch 2024-01-22, Service Arch 2024-02-05
Participants:
Story Points: 6

 Description   

This change should improve performance as we can return a reference from `dbName()` (rather than allocate a new object with its underlying string) when retrieving the DatabaseName from a NamespaceString. Sub-goal : fix a bug in DatabaseName::equalCaseInsensitive . It should compare the database names without being case sensitive, but it should be case-sensitive when comparing TenantId.



 Comments   
Comment by Githook User [ 23/Jan/24 ]

Author:

{'name': 'Didier Nadeau', 'email': 'didier.nadeau@mongodb.com', 'username': 'nadeaudi'}

Message: SERVER-84311 Make NamespaceString inherit from DatabaseName (#17834)

GitOrigin-RevId: 6186e85c15fb0925a8eea1c42b87cca0b10b9b6a
Branch: master
https://github.com/mongodb/mongo/commit/0a871504d0ddf7f68ea82b6423d815a2cf6e707d

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