-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Fully Compatible
-
Execution Team 2022-11-14
The logOplogEntries() function, used to format applyOps oplog entries for multi-doc transactions and batched write, fetches the lastWriteOpTime from the TransactionParticipant before writing out any oplog entries. This call is redundant because the lastWriteOptime is always null and gets set in between oplog entries in a chain of applyOps entries for a large transaction.
It should be safe to convert this TransactionParticipant::getLastWriteOpTime() to an invariant.
- is related to
-
SERVER-70899 move logOplogEntries() from OpObserverImpl to TransactionOperations
- Closed