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

DBClientWithCommands::ensureIndex() doesn't report errors

    • Fully Compatible
    • ALL

      Observed while writing a unit test for SERVER-23096. You can call DBDirectClient::ensureIndex() twice with the same keys, but once passing true for 'unique' and once passing false, and both calls to ensureIndex() return success.

      When running the createIndexes command it correctly errors with an IndexOptionsConflict error.

            Assignee:
            rassi J Rassi
            Reporter:
            spencer@mongodb.com Spencer Brody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: