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

GridFS index creation should be deferred until first write operation

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 1.16.0
    • GridFS
    • None

    Description

      _mongoc_gridfs_new always calls _mongoc_gridfs_ensure_index, which conflicts with the GridFS spec for Indexes.

      Index should only be created before the first write operation on a bucket, and even then the driver should first check if they already exist. This avoids errors where the user has permissions to insert documents into the GridFS collections but does not have permissions to manage indexes.

      Attachments

        Activity

          People

            andreas.braun@mongodb.com Andreas Braun
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: