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

OplogBufferCollection should save sentinels in collection

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.4.0-rc2
    • None
    • Replication
    • None
    • Fully Compatible
    • Repl 2016-10-31

    Description

      Instead of maintaining a vector of the sentinel values in memory, OplogBufferCollection should store sentinels on disk. The _id field format would be changed from:

      _id: <Timestamp>
      

      to:

      _id: { ts: <Timestamp>, sentinel: <i> }
      

      Where i is the number of sentinels with the same timestamp <Timestamp>.

      This change would improve readability and make it easier to implement batched reads from the collection in SERVER-26191

      Attachments

        Activity

          People

            benety.goh@mongodb.com Benety Goh
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: