[CSHARP-2909] GridFS index checking should support indexes created in the shell Created: 22/Jan/20 Updated: 27/Oct/23 Resolved: 29/Jan/20 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | PM Bot | Assignee: | Robert Stam |
| Resolution: | Works as Designed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Epic Link: | CSHARP-2932 | ||||||||
| Description |
|
See |
| Comments |
| Comment by Robert Stam [ 29/Jan/20 ] |
|
The C# driver checks whether the required indexes exist by examining the existing index. For each existing index it compares the key of that index to the required index. The keys are represented as `BsonDocument` and they are compared using the `BsonDocument.Equals` method, which is implemented to compare mixed numeric types by value, so that for example 1 and 1.0 are equal. Therefore the C# driver already behaves as this ticket requires. |