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

XMLWordPrintableJSON

    • Catalog and Routing
    • Fully Compatible
    • v8.0
    • CAR Team 2024-04-29, CAR Team 2024-05-13
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 Gomez Ferro
              Reporter:
              Daniel Gomez Ferro
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: