-
Type:
Improvement
-
Resolution: Won't Do
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Storage Execution
-
Execution EMEA Team 2023-09-04, Execution EMEA Team 2023-10-02
-
None
-
3
-
None
-
None
-
None
-
None
-
None
-
None
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.
- is related to
-
SERVER-72646 The Options passed into AutoGet* constructors make it difficult to know what is available to the constructors
-
- Closed
-