Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-63131

Change CollectionCatalog::_orderedCollections to be keyed by std::pair<TenantDatabaseName, UUID>

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Server Serverless 2022-02-07, Server Serverless 2022-02-21

      _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

       

       

       

            Assignee:
            sophia.tan@mongodb.com Sophia Tan
            Reporter:
            sophia.tan@mongodb.com Sophia Tan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: