collMod command should have better return reporting

XMLWordPrintableJSON

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

      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 Horowitz (Inactive)
            Reporter:
            Kevin Matulef (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: