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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.2.7
    • mongofiles
    • None
    • v2.6

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-tools Backlog - Server Tools Team
              msoutier Marius Soutier
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: