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

make OplogEntry immutable

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0-rc4
    • Affects Version/s: 3.5.13
    • Component/s: Replication
    • Fully Compatible
    • ALL
    • Repl 2017-11-13

      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.

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

              Created:
              Updated:
              Resolved: