Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-39181

Loosen IDL based set parameter definitions

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.1.8
    • None
    • None
    • None
    • Minor Change
    • Security 2019-01-28

    Description

      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.

      Attachments

        Activity

          People

            sara.golemon@mongodb.com Sara Golemon
            sara.golemon@mongodb.com Sara Golemon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: