Details
-
Improvement
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
Service arch 2020-09-21
Description
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.
Attachments
Issue Links
- duplicates
-
SERVER-47778 have MONGO_INITIALIZERs throw to indicate failure
-
- Closed
-