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

OplogBufferCollection should save sentinels in collection

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.0-rc2
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • Repl 2016-10-31

      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

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

              Created:
              Updated:
              Resolved: