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

CollectionCatalog::latest uses a global mutex to load the catalog reference

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Catalog and Routing
    • CAR Team 2024-04-29, CAR Team 2024-05-13

      CollectionCatalog::latest performs an atomic_load on a shared_ptr, which looks like it is a simple atomic load operation but instead has to use a global mutex to coordinate the shared_ptr's refcount update with the pointer update. This shows up when profiling acquireCollection (PERF-5353)

            Assignee:
            daniel.gomezferro@mongodb.com Daniel Gomez Ferro
            Reporter:
            daniel.gomezferro@mongodb.com Daniel Gomez Ferro
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: