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

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

    • ALL

      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@mongodb.com Spencer Brody (Inactive)
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: