Wrong "next id" shown with "EXCESSIVE SKIPPING OF ERROR CODES" message

XMLWordPrintableJSON

    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      In SERVER-36103 we added a check to errorcodes.py that no error code is larger than some globally-defined maximum. If this check fails, however, errorcodes.py gives bad instructions.

      For example, if MAXIMUM_CODE is 99, the highest error code currently used is 50, and I add an error code 1000, errorcodes.py prints:

      EXCESSIVE SKIPPING OF ERROR CODES:
      {{ file.cpp:68:25:fassert(1000}}
      next id to use: 1001

      It should instead print the next id to use, which is 51 in this example.

              Assignee:
              Spencer Brody (Inactive)
              Reporter:
              A. Jesse Jiryu Davis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: