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

setParameter command has confusing behavior when setting multiple parameters.

    • ALL

      The result of a successful setParameter with one parameter to set is

      { was: <old value>, ok: 1 }

      . However, if you set two parameters, you get back

      { was: <first old value>, was: <second old value>, ok: 1}

      , which many client drivers seem to turn into

      { was: <one of the old values>, ok: 1}


      Further, if you pass multiple parameters to setParameter, and one of the sets fails, some of the parameters will have been set and some not, and the response will contain a "was" field for one of the successful sets, ok: 0 and errmsg of "not allowed to change [<first encountered unsettable field>]" or some such.

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            schwerin@mongodb.com Andy Schwerin
            0 Vote for this issue
            6 Start watching this issue