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

Validate options for createIndexes command

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Admin
    • Labels:
      None

      Description

      Consider the command to build a background index:

      db.foo.ensureIndex({bar:1}, {backtround: true}) // typo intentional

      A typo in the options like the one above will trigger a foreground index build, with may have a very negative impact on production environments.

      It would be nice if we could validate options to the ensureIndex() command, and fail with an error message if invalid options are provided.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: