-
Type: Improvement
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Internal Code
-
None
-
Fully Compatible
-
Repl 2018-04-23, Repl 2018-05-07
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.
- is related to
-
SERVER-24635 Remove duplicate fassert w/status function
- Closed
-
SERVER-16254 invariantOK that takes a status
- Closed
-
SERVER-33659 add no-trace variant fassertStatusOK that accepts StatusWith
- Closed