[SERVER-39181] Loosen IDL based set parameter definitions Created: 24/Jan/19  Updated: 29/Oct/23  Resolved: 25/Jan/19

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.1.8

Type: Improvement Priority: Major - P3
Reporter: Sara Golemon Assignee: Sara Golemon
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Minor Change
Sprint: Security 2019-01-28
Participants:

 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.


 Comments   
Comment by Githook User [ 25/Jan/19 ]

Author:

{'email': 'sara.golemon@mongodb.com', 'name': 'Sara Golemon'}

Message: SERVER-39181 Loosen IDL setParameter restrictions
Branch: master
https://github.com/mongodb/mongo/commit/4f06ba60e0fef61a4136c4c77ae4e98627e16ffa

Generated at Thu Feb 08 04:51:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.