[CDRIVER-292] no accessor functions for collections in gridfs Created: 09/Mar/14  Updated: 03/May/17  Resolved: 11/Mar/14

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

Type: Improvement Priority: Major - P3
Reporter: Gustaf Neumann Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

the report refers to the "new" c-driver, the tip version in git


Attachments: Text File c-driver-grifs-collection-accessor.patch    

 Description   

A c-driver client can't currently access the collections "files" and "chunks" in the mongoc_gridfs_t. Accessing these is important in case a client wants to refine the semantics of files deletions (example e.g. in the nsfmongo driver ("git clone git://alice.wu-wien.ac.at/nsf" see nsf/library/mongodb/nsfmongo.c, code around MONGO_HAS_NO_GRIDFS_COLLECTION_ACCESSOR). Providing an accessor just for reading access should be quite harmless. Without the patch, a client has to include the private header files.

Attached is a patch relative to the current head version of the mongo-c-driver.



 Comments   
Comment by Gustaf Neumann [ 12/Mar/14 ]

Great. Many thanks!

Comment by Christian Hergert [ 11/Mar/14 ]

Fixed in master. Thanks for the patch!

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