Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-292

no accessor functions for collections in gridfs

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.0.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      the report refers to the "new" c-driver, the tip version in git

      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.

            Assignee:
            Unassigned Unassigned
            Reporter:
            gustafn Gustaf Neumann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: