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

make OplogEntry immutable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.5.13
    • Fix Version/s: 3.6.0-rc4
    • Component/s: Replication
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Repl 2017-11-13

      Description

      Current definition of == compares the 'raw' member variable. The 'raw' variable is only set in the constructor. If the object is mutated after, for example, calling setFromMigrate(), then it will no longer match the actual object.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              benety.goh Benety Goh
              Reporter:
              renctan Randolph Tan
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: