Simplify oplog rollover check in mongodump

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Won't Fix
    • Priority: Minor - P4
    • None
    • Affects Version/s: 3.0.1, 3.1.0
    • Component/s: mongodump
    • None
    • Not Needed

      In the current oplog rollover check, we check to see if the oplog has rolled over (the latest timestamp that existed when mongodump started is still in the oplog collection) then dump the new oplog entries, then check again to make sure the oplog didn't roll over during the oplog dump.

      We can make this cleaner and more correct by checking once and then dumping the collection while holding on to the oldest oplog entry, checking that entry at the end to make sure it is the cutoff.

            Assignee:
            David Golden
            Reporter:
            Kyle Erf (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: