Chunks collection files_id_1_n_1 index not unique

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 1.0.0-rc2
    • Affects Version/s: None
    • Component/s: GridFS
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 (Inactive)
              Reporter:
              Patrick Freed
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: