[SERVER-51818] add name to invariant message in Mutex destructor Created: 23/Oct/20  Updated: 29/Oct/23  Resolved: 17/Nov/20

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 4.9.0, 4.4.3

Type: Improvement Priority: Minor - P4
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4
Sprint: Execution Team 2020-11-02
Participants:
Linked BF Score: 0

 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.



 Comments   
Comment by Githook User [ 19/Nov/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-51818 add name to invariant message in Mutex destructor

(cherry picked from commit 730eaeb09fe1cbc2a4115076fe77130e26f727b9)
Branch: v4.4
https://github.com/mongodb/mongo/commit/c880c4893ee787decceb0967e4074bd820316021

Comment by Githook User [ 24/Oct/20 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-51818 add name to invariant message in Mutex destructor
Branch: master
https://github.com/mongodb/mongo/commit/730eaeb09fe1cbc2a4115076fe77130e26f727b9

Generated at Thu Feb 08 05:26:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.