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}",