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

Chunks collection files_id_1_n_1 index not unique

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.0-rc2
    • Affects Version/s: None
    • Component/s: GridFS
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved: