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

collMod command should have better return reporting

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.2.0-rc1
    • Affects Version/s: 2.1.2
    • Component/s: None
    • None
    • Fully Compatible

      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.

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

              Created:
              Updated:
              Resolved: