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

Allow integers for parameters defined in idl as requiring doubles

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Security 2021-09-20

    Description

      For example, if I want to disable mirrored reads, I'd like to execute the following command in mongosh:

      db.adminCommand( {
        setParameter: 1,
        mirrorReads: { samplingRate: 0 }
      } )
      

      However, this will lead to an error since the sampling rate is not a double.

      https://github.com/mongodb/mongo/blob/5bbadc66ed462aed3cc4f5635c5003da6171c25d/src/mongo/db/mirror_maestro.idl#L44

      Attachments

        Activity

          People

            sara.golemon@mongodb.com Sara Golemon
            kelsey.schubert@mongodb.com Kelsey Schubert
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: