Ensure index does not properly update index with case mismatch

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Minor - P4
    • None
    • Affects Version/s: 2.6.0-rc0
    • Component/s: Index Maintenance
    • None
    • ALL
    • Hide

      Run the two lines of ensure index above and view the resulting indexes.

      Show
      Run the two lines of ensure index above and view the resulting indexes.
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Running the following code on 2.6 rc0:

      db.bug.ensureIndex({'isactive': 1}, {name: 'find_active'});
      db.bug.ensureIndex({'IsActive': 1}, {name: 'find_active'});
      

      Results in the bug collection with an index for:

      {'isactive': 1}

      NOT an index for

      {'IsActive': 1}

      My expectation is the second index would either replace or co-exist with the first. It is not that the first index is kept and the second statement is ignored.

              Assignee:
              J Rassi (Inactive)
              Reporter:
              Michael Kennedy
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: