Validate a subset of latches of all levels

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.3.3
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Service Arch 2019-12-02, Service Arch 2019-12-16
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We should annotate the subset of latches in mongo::transport, mongo/executor, and mongo/util/concurrency. This involves the following:

      • Modify MONGO_MAKE_LATCH to have a variadic argument list that it passes to the Mutex constructor. This allows the last argument to optionally be a HierachicalAcquisitionLevel.
      • Add a HierarchicalAcquisitionSet to the LatchSetState decoration and add/remove using the LockListener from SERVER-42897
      • Change MONGO_MAKE_BASE_LATCH to set HierachicalAcquisitionLevel(0) instead of isBaseLatch=false
      • Change a collection of higher-level latches to have HierachicalAcquisitionLevels. These latches will most likely derive their levels from latches of a lower level than them.

            Assignee:
            Rahul Sundararaman (Inactive)
            Reporter:
            Benjamin Caimano (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: