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

Rename CatalogCache::invalidateShardOrEntireCollectionEntryForShardedCollection function

    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2024-07-08, CAR Team 2024-07-22, CAR Team 2024-08-05, CAR Team 2024-08-19
    • 1

      In SERVER-78495 we removed the possibility of marking a specific shard as stale, so the name of this function should be changed now to something more meaningful.

      Additionally, we could remove the ShardId from function parameters since it is not used anymore.

      When choosing the new name for this function we should take into account that this function:

      • Is not shard specific anymore.
      • Does not really invalidate the cache entry, just advances the “known” time in the underlying ReadThroughCache, so all the subsequent accesses to the cached entry that require casual consistency will trigger a cache entry refresh.
      • It does not act only on sharded collections

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

              Created:
              Updated:
              Resolved: