add name to invariant message in Mutex destructor

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Minor - P4
    • 4.9.0, 4.4.3
    • Affects Version/s: None
    • Component/s: Internal Code
    • None
    • Fully Compatible
    • v4.4
    • Execution Team 2020-11-02
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When this invariant in the Mutex destructor is triggered, we get the stack trace with the !_isLocked expression that failed. This is usually fine for classes with a single Mutex field. For classes containing multiple Mutex fields, it would be useful to include the name passed to MONGO_MAKE_LATCH.

              Assignee:
              Benety Goh
              Reporter:
              Benety Goh
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: