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

Wrong value used in applyUntilAndPause uassert message

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.1.5
    • Affects Version/s: 3.1.3
    • Component/s: Replication
    • Labels:
    • Fully Compatible
    • ALL
    • RPL 5 06/26/16

      The second uassert message should use 'right' instead of 'left' because it's checking right.hasField("ts"):

      db/repl/applier.cpp

      uassert(ErrorCodes::FailedToParse,
              str::stream() << "Operation missing 'ts' field': " << left,
              left.hasField("ts"));
      uassert(ErrorCodes::FailedToParse,
              str::stream() << "Operation missing 'ts' field': " << left,
              right.hasField("ts"));
      

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: