[CDRIVER-1190] filename index created on wrong collection Created: 01/Apr/16  Updated: 10/Aug/16  Resolved: 18/Apr/16

Status: Closed
Project: C Driver
Component/s: GridFS
Affects Version/s: None
Fix Version/s: 1.4.0

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

db.fs.files is supposed to have an index ensured on "filename". Instead, the index is created on db.fs.chunks, where it isn't useful.

The GridFS spec says:

For efficient execution of various GridFS operations the following indexes MUST exist:

  • an index on { filename : 1, uploadDate : 1 } on the files collection
  • a unique index on { files_id : 1, n : 1 } on the chunks collection


 Comments   
Comment by Githook User [ 19/Apr/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-1190 update GridFS tests

Now that indexes are properly ensured, two tests require adaptation.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/75b08be22edcc36c7e8c16903d665cd60dfd43b1

Comment by Githook User [ 18/Apr/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-1190 ensure proper GridFS indexes
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/62e680aa26754ef8dbdb2709aac4d2488507872a

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