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

add name to invariant message in Mutex destructor

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.9.0, 4.4.3
    • Component/s: Internal Code
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Backport Requested:
      v4.4
    • Sprint:
      Execution Team 2020-11-02
    • Linked BF Score:
      20

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            benety.goh Benety Goh
            Reporter:
            benety.goh Benety Goh
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: