-
Type:
Improvement
-
Resolution: Duplicate
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Internal Code
-
Service arch 2020-09-21
-
None
-
0
-
None
-
None
-
None
-
None
-
None
-
None
These functions rarely return anything but Status::OK(), and many are even no-ops, which makes the requirement to return Status::OK() just unnecessary noise.
Moreover, returning anything but Status::OK is essentially fatal, so it might as well throw.
All initializers can be converted very easily.
- duplicates
-
SERVER-47778 have MONGO_INITIALIZERs throw to indicate failure
-
- Closed
-