[SERVER-57691] [4.0 only] Return early in TxnResources if not in WUOW Created: 14/Jun/21  Updated: 29/Oct/23  Resolved: 17/Jun/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.0.25
Fix Version/s: 4.0.26

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

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Repl 2021-06-28
Participants:
Linked BF Score: 48

 Description   

We should return early in TxnResources if we aren't in a WUOW, similar to what we currently do in branches v4.2 and greater. Otherwise, we can hit a segfault when calling release().



 Comments   
Comment by Githook User [ 17/Jun/21 ]

Author:

{'name': 'Jason Chan', 'email': 'jason.chan@10gen.com', 'username': 'jasonjhchan'}

Message: SERVER-57691 Return early in TxnResources if not in WUOW
Branch: v4.0
https://github.com/mongodb/mongo/commit/0622e68546f0fc13c25abaac4dfd5aaada4aecad

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