[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: |
|
||||||||
| 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: |