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

collMod command should have better return reporting

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 2.2.0-rc1
    • 2.1.2
    • None
    • None
    • Fully Compatible

    Description

      Currently the only parameter that the "collMod" command can parse is "usePowerOf2Sizes". If you spell "usePowerOf2Sizes" wrong, or put anything else in there, the command still returns

      { "ok" : 1}

      . This is confusing. The command should have better return reporting.

      There are different ways to deal with this. I'm in favor of just having the command return

      { "ok" : 0}

      (with an appropriate error message) if you pass in other BSON elements it doesn't know what to do with.

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            matulef Kevin Matulef
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: