[SERVER-39289] Add method to indicate whether a RecoveryUnit has an active transaction Created: 30/Jan/19  Updated: 29/Oct/23  Resolved: 11/Jun/19

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

Type: Improvement Priority: Major - P3
Reporter: Jonathan Reams Assignee: Gabriel Villasana (Inactive)
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Execution Team 2019-06-03, Execution Team 2019-06-17
Participants:

 Description   

In SERVER-38071 we need to explicitly abandon a snapshot after doing a findOne on the authz data for mongod, but there is no way to know whether you already have a snapshot to begin with. This should be okay since authz checks are the first thing we do, but it would be nice to be able to check that assumption and ensure programmatically that we are not abandoning a snapshot that a user query needs.

geert.bosch told me to file this ticket to lift the inActiveTxn() function into the RecoveryUnit interface.



 Comments   
Comment by Githook User [ 11/Jun/19 ]

Author:

{'name': 'Gabe Villasana', 'email': 'gabe.villasana@mondodb.com'}

Message: SERVER-39289 Add method to indicate whether a RecoveryUnit has an active transaction
Branch: master
https://github.com/mongodb/mongo/commit/77b85a78205d0f8b404efec212b4e8e7fc37d6ed

Generated at Thu Feb 08 04:51:36 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.