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

createIndex command does not fail from the shell when the index already exists

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.0.2, 2.1.0
    • Shell
    • None
    • ALL

    Description

      db.foo.createIndex(

      {bar:1}

      ) followed by the same command in the shell does not give an error. Expect this to throw an error when using createIndex as opposed to ensureIndex.

      Attachments

        Activity

          People

            backlog-server-platform DO NOT USE - Backlog - Platform Team
            sridhar Sridhar Nanjundeswaran
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: