[SERVER-63131] Change CollectionCatalog::_orderedCollections to be keyed by std::pair<TenantDatabaseName, UUID> Created: 31/Jan/22  Updated: 29/Oct/23  Resolved: 09/Feb/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.3.0

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

Issue Links:
Depends
is depended on by SERVER-61988 Change CollectionCatalog maps that ar... Closed
Backwards Compatibility: Fully Compatible
Sprint: Server Serverless 2022-02-07, Server Serverless 2022-02-21
Participants:

 Description   

_orderedCollections is currently keyed by a std::pair<std::string, UUID>, change it to be keyed by std::pair<TenantDatabaseName, UUID>.

Also, change the related functions on CollectionCatalog that take in a dbName as a string to instead take in TenantDatabaseName.

-CollectionCatalog::iterator https://github.com/mongodb/mongo/blob/e1b81f363ccae3f9892815e5874b9a39665d8ebb/src/mongo/db/catalog/collection_catalog.cpp#L319

- CollectionCatalog::getAllCollectionUUIDsFromDb  https://github.com/mongodb/mongo/blob/e1b81f363ccae3f9892815e5874b9a39665d8ebb/src/mongo/db/catalog/collection_catalog.cpp#L867

- CollectionCatalog::getAllCollectionNamesFromDb https://github.com/mongodb/mongo/blob/e1b81f363ccae3f9892815e5874b9a39665d8ebb/src/mongo/db/catalog/collection_catalog.cpp#L881

 

 

 



 Comments   
Comment by Githook User [ 09/Feb/22 ]

Author:

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

Message: SERVER-63131 Change CollectionCatalog::_orderedCollections to be keyed by std::pair<TenantDatabaseName, UUID>
Branch: master
https://github.com/mongodb/mongo/commit/c6e6615a5d4ead5afe5e961dbb7dc5998153ff60

Generated at Thu Feb 08 05:56:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.