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

DBClientWithCommands should not cache ensureIndex calls

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding
    • None

    Description

      DBClientWithCommands::ensureIndex() performs a no-op if ensureIndex has already been called on the same index earlier in the object's lifetime. This is confusing behavior (the no-op is incorrect if the index or collection was dropped through other means) and should be removed.

      See also linked ticket SERVER-7168.

      Attachments

        Activity

          People

            schwerin@mongodb.com Andy Schwerin
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: