Details
-
Improvement
-
Resolution: Won't Do
-
Major - P3
-
None
-
None
-
None
-
None
-
Storage Execution
-
Execution EMEA Team 2023-09-04, Execution EMEA Team 2023-10-02
Description
We follow a pattern where the OptionsBase struct contains seemingly private members (e.g. _viewMode) with setter functions which emulate designated initialisers.
e.g. to initialise with a viewmode and a deadline.
AutoGetCollection::Options{}.viewMode(auto_get_collection::ViewMode::kViewsPermitted).deadline(someDeadline);
|
It is confusing because those members are not really private, and are being accessed when using the options. Now that we have designated initialisers we could improve how we initialise options.
Attachments
Issue Links
- is related to
-
SERVER-72646 The Options passed into AutoGet* constructors make it difficult to know what is available to the constructors
-
- Closed
-