[SERVER-79204] Avoid accessing collection pointer in TS_MODIFY destructor Created: 21/Jul/23  Updated: 29/Oct/23  Resolved: 24/Jul/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0

Type: Bug Priority: Major - P3
Reporter: Yuhong Zhang Assignee: Yuhong Zhang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution NAMR Team 2023-08-07
Participants:
Linked BF Score: 167

 Description   

The pointer could be invalid by the time it's accessed in the destructor. All we need is the namespace of the collection, which can be accessed from the execution stats map.



 Comments   
Comment by Githook User [ 24/Jul/23 ]

Author:

{'name': 'Yuhong Zhang', 'email': 'yuhong.zhang@mongodb.com', 'username': 'YuhongZhang98'}

Message: SERVER-79204 Avoid accessing collection pointer in the destructor of TS_MODIFY stage
Branch: master
https://github.com/mongodb/mongo/commit/5cd1f2f8dae3a7161345b41fea3613dac221acba

Generated at Thu Feb 08 06:40:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.