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

collMod command should have better return reporting

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.2.0-rc1
    • Component/s: None
    • Labels:
      None
    • Backwards Compatibility:
      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

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: