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

Remove redundant CatalogCache getter functions

    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2024-10-14, CAR Team 2024-10-28

      Currently, the CatalogCache exposes 11 functions that all return a CollectionRoutingInfo object.

      This complicates the life of developers because they always need to think very hard which of the 11 variants they should use in their code.

      The plan is to remove the following functions:

      • CatalogCache::getShardedCollectionRoutingInfoWithPlacementRefresh
      • CatalogCache::getTrackedCollectionRoutingInfoWithPlacementRefresh
      • CatalogCache::getTrackedCollectionRoutingInfo()
      • CatalogCache::getShardedCollectionRoutingInfo()
      • CatalogCache::getTrackedCollectionRoutingInfoWithRefresh()
      • CatalogCache::getShardedCollectionRoutingInfoWithRefresh()

            Assignee:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: