[CSHARP-353] DropDatabase does not clear the IndexCache used by EnsureIndex Created: 09/Nov/11 Updated: 02/Apr/15 Resolved: 09/Nov/11 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 1.3 |
| Fix Version/s: | 1.3.1 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Robert Stam | Assignee: | Robert Stam |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
One way to reproduce: var server = MongoServer.Create("mongodb://localhost/?safe=true"); var text = "Hello World"; database.Drop(); The second upload fails because the index on { files_id : 1, n : 1 }does not exist on the fs.chunks collection. EnsureIndex failed to create it the second time because DropDatabase didn't clear the IndexCache. |