-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Execution Team 2022-09-19
This copy operation can be replaced with a mutable reference to the container of replication operations.
Compare with this usage of TransactionParticipant::retrieveCompletedTransactionOperations() in TransactionParticipant::prepareTransaction()|https://github.com/mongodb/mongo/blob/2b958166154c99dc554591d57ce44caee35cb446/src/mongo/db/transaction/transaction_participant.cpp#L1600].
Storing a mutable reference to the completed operations is preferable because the caller is responsible for clearing the in-memory operations using clearOperationsInMemory. Additionally, the OpObserver interfaces are declared to accept a pointer to the vectory of ReplOperations.
- is related to
-
SERVER-45806 Record pre-images on updates and deletes when recordPreImage is enabled
- Closed
-
SERVER-38906 Multi-document transactions should not perform timestamped read ahead of all-committed
- Closed
-
SERVER-39017 Allow prepared transaction statements to persist in-memory until commit
- Closed
- related to
-
SERVER-69560 change return type of TransactionParticipant::retrieveCompletedOperations() to a pointer
- Closed