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

Creating an index using a non-existing plugin should be an error not a warning

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 2.4.0-rc2
    • Index Maintenance
    • None
    • Minor Change
    • ALL

    Description

      Currently just does:

      log() << "warning: can't find plugin [" << pluginName << "]" << endl;

      This means that typos like this will succeed and silently (excluding the log) do nothing:

      db.places.ensureIndex({location:"2D"})

      This will be a breaking change for users who mistakenly use string "1" instead of number 1 in their index specs.

      Attachments

        Issue Links

          Activity

            People

              mathias@mongodb.com Mathias Stearn
              mathias@mongodb.com Mathias Stearn
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: