[SERVER-64000] Create a unlock/relock scope guard Created: 25/Feb/22 Updated: 29/Oct/23 Resolved: 30/Jun/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Internal Code |
| Affects Version/s: | None |
| Fix Version/s: | 6.1.0-rc0, 6.0.6 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Amirsaman Memaripour | Assignee: | Erin McNulty |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | neweng, servicearch-wfbf-day | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||
| Backport Requested: |
v6.0
|
||||||||||||||||
| Sprint: | Service Arch 2022-06-27, Service Arch 2022-07-11 | ||||||||||||||||
| Participants: | |||||||||||||||||
| Story Points: | 1 | ||||||||||||||||
| Description |
|
Create a new RAII type that receives a unique_lock, unlocks it, and locks it again upon destruction:
One example for using this type is replacing the scope-guard in here:
|
| Comments |
| Comment by Githook User [ 13/Apr/23 ] |
|
Author: {'name': 'George Wangensteen', 'email': 'george.wangensteen@mongodb.com', 'username': 'gewa24'}Message: (cherry picked from commit dbef08b92565ffc372b6eef21a1ea11a45c964c1) |
| Comment by Githook User [ 30/Jun/22 ] |
|
Author: {'name': 'Erin McNulty', 'email': 'erin.mcnulty@mongodb.com', 'username': 'erin2722'}Message: |