Loosen IDL based set parameter definitions

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.1.8
    • Affects Version/s: None
    • Component/s: None
    • None
    • Minor Change
    • Security 2019-01-28
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Based on conversion work feedback, this makes two changes to specialized server parameters:

      1. Allow defining a default value without any bound data.  In this scenario, the class definition will have a {classname}:kDataDefault constexpr, but it will be up to the implementing callsite to make use of it.
      2. Default implementations of ServerParameter::set() will now accept any BSONElement which is coercible to a std::string, rather than just the String type only.  This is useful for numeric specialized server parameters as number can easily round-trip through strings.

            Assignee:
            Sara Golemon (Inactive)
            Reporter:
            Sara Golemon (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: