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

add Status support to invariant()

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor - P4 Minor - P4
    • 4.0.0-rc0
    • None
    • Internal Code
    • None
    • Fully Compatible
    • Repl 2018-04-23, Repl 2018-05-07

    Description

      Code that require the use of invariants currently use invariant() for boolean conditions and invariantOK() for Statuses. Extending invariant() to support Status would mean one fewer assertion function for developers to remember.

      Attachments

        Activity

          People

            benety.goh@mongodb.com Benety Goh
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: