[SERVER-69529] TransactionParticipant::_resetTransactionStateAndUnlock() does not clear pre/post-image statistics Created: 08/Sep/22  Updated: 29/Oct/23  Resolved: 09/Sep/22

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

Type: Bug Priority: Minor - P4
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-45805 Add recordPreImages flag to collMod a... Closed
is related to SERVER-61190 [Retryability] Rename numberOfPreImag... Closed
is related to SERVER-68860 add container type to hold replicated... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2022-09-19
Participants:

 Description   

The TransactionParticipant maintains a list of completed operations in a vector along with some associated statistics (size in bytes, pre/post-images, statement ids). There are two methods it uses to reset these operations and statistics:

Current, _resetTransactionStateAndUnlock() does not reset numberOfPrePostImagesToWrite, something that clearOperationsInMemory() does. It would nice to resolve this inconsistency.



 Comments   
Comment by Githook User [ 08/Sep/22 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-69529 TransactionParticipant::_resetTransactionStateAndUnlock() clears numberOfPrePostImagesToWrite
Branch: master
https://github.com/mongodb/mongo/commit/ec2719abe04dea33c6453e84140da4fbb9e2f6fe

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