[CSHARP-230] EnsureIndex doesn't recreate an index adter a table is dropped Created: 20/May/11 Updated: 02/Apr/15 Resolved: 20/May/11 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 1.1 |
| Fix Version/s: | 1.1 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Justin Dearing | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 7 64 Bit Powershell 2.0. |
||
| Description |
|
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. |
| Comments |
| Comment by Robert Stam [ 20/May/11 ] |
|
Fixed. |