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

Return last visible optime in repldata metadata for all commands

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

      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 Matt Dannenberg
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: