Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-230

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

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

      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@mongodb.com Robert Stam
            Reporter:
            zippy1981 Justin Dearing
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: