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

Make it easier to provide validation rules for server parameters

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.6, 4.0.0-rc0
    • Component/s: Internal Code
    • Labels:
      None

      Description

      We have nice macros for defining a server parameter, like MONGO_EXPORT_SERVER_PARAMETER. But if you want to validate the input in any way, you can't use the macros and have to define the ServerParameter explicitly, like we do here. It would be nice if we could just pass in a lambda to the macro that returned a Status indicating whether the value provided was valid, that could be used both for startup and runtime changes.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              spencer Spencer Brody
              Reporter:
              spencer Spencer Brody
              Participants:
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: