[SERVER-51769] ephemeralForTest's inActiveTxn() performs the incorrect RecoveryUnit check Created: 20/Oct/20  Updated: 29/Oct/23  Resolved: 21/Oct/20

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Bug Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Gregory Wlodarek
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: Execution Team 2020-11-02
Participants:
Linked BF Score: 50

 Description   

The code today checks for _inUnitOfWork() when it should be checking for _isActive().

Additionally, both WiredTiger and ephemeralForTest will have the same logic so we can move it up into the RecoveryUnit.



 Comments   
Comment by Githook User [ 21/Oct/20 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-51769 Fix ephemeralForTest's RecoveryUnit::isActive()
Branch: master
https://github.com/mongodb/mongo/commit/f0576bfbe8bc948366fc9f4b5c10bdc126d3ea64

Comment by Githook User [ 21/Oct/20 ]

Author:

{'name': 'Gregory Wlodarek', 'email': 'gregory.wlodarek@mongodb.com', 'username': 'GWlodarek'}

Message: SERVER-51769 Fix null dereference in an invariant
Branch: master
https://github.com/mongodb/mongo/commit/b73053f9867b3b34d8120496741af42d45bf2cfe

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