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

loadLastOpTimeAndWallTime should use IDL to parse oplog entries

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • ALL
    • v4.2, v4.0, v3.6
    • Repl 2019-08-12, Repl 2019-08-26, Repl 2019-09-09, Repl 2019-09-23

      As of SERVER-40080 here the "wall" field of oplog entries no longer became optional like it is in the IDL. If we used the IDL for parsing the oplog entry there, then this backwards breaking change wouldn't have happened since the IDL considers it optional. This actually should be safe since we've been adding 'wall' since 3.6 and it's about time we made it mandatory, but we should do that in the IDL, not in one particular place where we parse the oplog entry individually.

      Specifically, we should use the OplogEntry class to parse oplog entries everywhere.

            Assignee:
            xuerui.fa@mongodb.com Xuerui Fa
            Reporter:
            judah.schvimer@mongodb.com Judah Schvimer
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: