Return last visible optime in repldata metadata for all commands

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 3.1.7
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • RPL 8 08/31/15
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      To support readAfterOptime, we can return the last visible optime in the repldata metadata. This value should be one of three things:

      • for read commands:
        • if read concern level majority was used for the read, the last visible optime should be the optime of the snapshot last used to return data for the query.
        • if read concern level local was used, the last visible optime should be the last written optime in the oplog at the time of the query's conclusion
      • for write commands:
        • the last visible optime should simply be the optime assigned to the write operation

            Assignee:
            Matt Dannenberg (Inactive)
            Reporter:
            Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: