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

Disallow introduction of new usages of AutoGetDb/Collection* in the codebase

    • Cluster Scalability
    • Sharding EMEA 2023-10-02

      With the introduction of the Shard Role API under PM-2144 all new code which accesses data from the storage engine must go through one of the acquireCollection variants, which enforce a much stricter contract between the sharding catalog, local catalog and storage engine data.

      In order to converge towards the new API we want to disallow the introduction of any new usages of AutoGetDb/Collection and its friends.

      This ticket is to move all the variants of the AutoGetDb/Collection API to some internal-sounding namespace (such as collection_internal::) and add a clang-tidy rule to prevent any new usages.

            Assignee:
            backlog-server-cluster-scalability [DO NOT USE] Backlog - Cluster Scalability
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: