The index ensured by mongoc_client_get_gridfs must be unique

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: GridFS
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      mongoc_client_get_gridfs() returns NULL in MongoDB versions < 3.0.

      Error message is:
      files_id_1_n_1 already exists with different options

      When uploading files (e.g. using mongofiles), MongoDB creates an index with

      {unique:1}

      in MongoDB 3.0, while it is missing in lower versions.

      What is the value of ensuring this index on each access anyway? MongoDB certainly creates the index. This is also a side-effect that should be documented.

              Assignee:
              A. Jesse Jiryu Davis
              Reporter:
              Marius Soutier
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: