ExportXMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 9.1.0-rc0
    • Affects Version/s: None
    • Component/s: Logging
    • None
    • Replication
    • Fully Compatible
    • Repl 2026-08-17, Repl 2026-08-31
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When we print the lock manager dump (dumpLockManager()), it's not straight forward to differentiate the different "Global" locks.

      There are currently 3 different types of Global locks:

      /**
       * Maps the global resource id to a human-readable string.
       */
      [[MONGO_MOD_PRIVATE]] inline constexpr const char* ResourceGlobalIdNames[] = {
          "MultiDocumentTransactionsBarrier",
          "ReplicationStateTransition",
          "Global",
      };

      But we don't print the names of these locks, just their IDs. Example:

       

      resourceId: "{2305843009213693953: Global, 1}",

      We would like to print the name of the lock instead of its ID, something like:

       

      resourceId: "{2305843009213693953: Global, ReplicationStateTransitionLock}", 

            Assignee:
            Pierre Turin
            Reporter:
            Pierre Turin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: