[CDRIVER-383] Need Function to Remove a File from a GRID File System Created: 20/Jun/14  Updated: 03/May/17  Resolved: 20/Jun/14

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

Type: Bug Priority: Major - P3
Reporter: Frank J. Lhota Assignee: Christian Hergert
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

In the 0.8x C Driver, one could remove all files with a given file name from a GRID file system using the function gridfs_remove_filename(). AFAICT the 0.9x C Driver does not provide any function for removing a file from a GRID file system. The only way to remove such a file with the 0.9x driver is to call mongoc_collection_remove() to remove the entry for the file from the "files" collection and each chunk for this file in the "chunks" collection.

The need to remove a file from a file system is almost as important as the ability to add a file. The C Driver should have a function for doing this.



 Comments   
Comment by Christian Hergert [ 20/Jun/14 ]

Fixed in https://github.com/mongodb/mongo-c-driver/commit/d4a1c6d044e43337a7bd9a4f092262591aacf4fe and will be part of 0.96.4.

Thanks again!

Comment by Christian Hergert [ 20/Jun/14 ]

Agreed, thanks for filing this issue. I'll see if I can add something today for you.

– Christian

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