Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-856

Chunks collection files_id_1_n_1 index not unique

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.0.0-rc2
    • None
    • GridFS
    • None

    Description

      According to the GridFS spec, the {files_id: 1, n: 1} index on the chunks collection is supposed to be unique, but the go driver creates it without specifying that.

      This allows orphan chunks to be made when writing a file with an _id that is already present.

      Attachments

        Activity

          People

            isabella.siu@mongodb.com Isabella Siu (Inactive)
            patrick.freed@mongodb.com Patrick Freed
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: