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

Make it easier to provide validation rules for server parameters

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.6, 4.0.0-rc0
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible
    • v3.6, v3.4
    • Repl 2018-05-21
    • 0

      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.

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: