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

DBClientWithCommands should not cache ensureIndex calls

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Sharding
    • None

      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.

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

              Created:
              Updated:
              Resolved: