Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-41100

Update lastWriteOpTime for prepareTransaction on secondary

    • Fully Compatible
    • ALL
    • Repl 2019-05-20, Repl 2019-06-03
    • 15

      lastWriteOpTime will be used to maintain the oplog chain when writing commit oplog entry. Since the secondary doesn't update it right now, committing the transaction will not have the link from the commit entry to the prepare.

      We should also add invariants to wherever prevOpTime shouldn't be null when writing oplog entries.

            Assignee:
            vesselina.ratcheva@mongodb.com Vesselina Ratcheva (Inactive)
            Reporter:
            siyuan.zhou@mongodb.com Siyuan Zhou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: