[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: |
|
||||||||
| 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: (cherry picked from commit 730eaeb09fe1cbc2a4115076fe77130e26f727b9) |
| Comment by Githook User [ 24/Oct/20 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: |