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

Rename CatalogCache::invalidateShardOrEntireCollectionEntryForShardedCollection function

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Catalog and Routing
    • 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:
            Unassigned Unassigned
            Reporter:
            tommaso.tocci@mongodb.com Tommaso Tocci
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: