[SERVER-39440] Write oplog entries with "inTxn" field before prepare Created: 08/Feb/19 Updated: 29/Oct/23 Resolved: 27/Feb/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 4.1.9 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Siyuan Zhou | Assignee: | Jason Chan |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Sprint: | Repl 2019-03-11 | ||||||||
| Participants: | |||||||||
| Description |
|
Oplog entries for individual operations are handled in a similar way as unprepared transactions except they are buffered until and written at the “prepare” time instead of the “commit” time. On “prepare” command, an oplog entry is written for each operation in the transaction with the new root field { “inTxn” : true } to denote it is a no-op. |
| Comments |
| Comment by Githook User [ 27/Feb/19 ] |
|
Author: {'name': 'Jason Chan', 'email': 'jason.chan@10gen.com'}Message: |