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

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

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

      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:
              Resolved: