[SERVER-66843] Use defensive programming in DeadlineFuture destructor Created: 27/May/22 Updated: 29/Oct/23 Resolved: 03/Jun/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.0.10, 5.3.3, 6.0.0-rc9 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Andrew Shuvalov (Inactive) | Assignee: | Andrew Shuvalov (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Requested: |
v6.0, v5.3, v5.0
|
||||||||
| Participants: | |||||||||
| Linked BF Score: | 130 | ||||||||
| Description |
|
In src/mongo/db/process_health/deadline_future.h the destructor is using _timeoutCbHandle, which is optional. Optional is such for a reason, it doesn't have to be set. |
| Comments |
| Comment by Githook User [ 03/Jun/22 ] |
|
Author: {'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}Message: (cherry picked from commit cae77d5066d76ec893a076b2b69fa6f409537a19) |
| Comment by Githook User [ 03/Jun/22 ] |
|
Author: {'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}Message: |
| Comment by Githook User [ 03/Jun/22 ] |
|
Author: {'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}Message: |
| Comment by Githook User [ 27/May/22 ] |
|
Author: {'name': 'Andrew Shuvalov', 'email': 'andrew.shuvalov@mongodb.com', 'username': 'shuvalov-mdb'}Message: |