[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: |
|
||||||||
| 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: GitOrigin-RevId: 6186e85c15fb0925a8eea1c42b87cca0b10b9b6a |