OplogBufferCollection should save sentinels in collection

XMLWordPrintableJSON

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

      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
            Reporter:
            Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: