EnsureIndex doesn't recreate an index adter a table is dropped

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Minor - P4
    • 1.1
    • Affects Version/s: 1.1
    • Component/s: None
    • None
    • Environment:
      Windows 7 64 Bit Powershell 2.0.
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Briefly put, if you have a MongoCollection and call EnsureIndex() followed by DropCollection, followed by the very same EnsureIndex() call the index is not created the second time. Executing the following powershell script twice from PowerShellISE will demonstrate this:

      https://gist.github.com/982750

      This is the sort of error that would only occur in an interactive shell (e.g. powershell IronPython, etc), or perhaps as part of an ETL process.

              Assignee:
              Robert Stam
              Reporter:
              Justin Dearing
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: