Reduce the cost of concurrency control for `CollectionShardingState`

XMLWordPrintableJSON

    • Service Arch
    • Fully Compatible
    • v8.0
    • Service Arch 2024-04-29, Service Arch 2024-05-13
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      A stdx::mutex is used to synchronize the hash-map that backs CollectionShardingState and maps a NamespaceString to its corresponding CSSAndLock. This mutex can be replaced with one that is optimized for shared reads and infrequent writes (e.g. SERVER-86656).

            Assignee:
            Amirsaman Memaripour
            Reporter:
            Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: