Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-808

mongofiles creates a different index between 2.6 and 3.0

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.7
    • Affects Version/s: None
    • Component/s: mongofiles
    • Labels:
      None
    • v2.6

      When uploading files with mongofiles, the following index is created in MongoDB 3.0:

      { "v" : 1, "unique" : true, "key" : { "files_id" : 1, "n" : 1 }, "name" : "files_id_1_n_1", "ns" : "test.fs.chunks" }
      

      In 2.6, the index is missing the unique attribute:

      { "v" : 1, "key" : { "files_id" : 1, "n" : 1 }, "name" : "files_id_1_n_1", "ns" : "test.fs.chunks" }
      

      This causes problems with drivers that automatically call ensureIndex with the unique index and then fail because the index exists but with different options.

        There are no Sub-Tasks for this issue.

            Assignee:
            Unassigned Unassigned
            Reporter:
            msoutier Marius Soutier
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: