[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:
Depends
is depended on by DRIVERS-789 GridFS index checking should support ... Closed
Epic Link: CSHARP-2932

 Description   

See DRIVERS-789 for details.



 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.

Generated at Wed Feb 07 21:43:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.