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

Wrong value used in applyUntilAndPause uassert message

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 3.1.5
    • 3.1.3
    • Replication
    • Fully Compatible
    • ALL
    • RPL 5 06/26/16

    Description

      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"));
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: