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

Return last visible optime in repldata metadata for all commands

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.1.7
    • None
    • Replication
    • None
    • Fully Compatible
    • RPL 8 08/31/15

    Description

      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

      Attachments

        Activity

          People

            matt.dannenberg Matt Dannenberg
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: