Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12051

autoIndexId=false allowed on non capped collections

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Works as Designed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Shell
    • Labels:
      None
    • Operating System:
      ALL

      Description

      The docs here say that autoIndexId is for capped collections: http://docs.mongodb.org/manual/reference/method/db.createCollection/

      But I can do it on non capped collections:

      > db.createCollection("test", { "autoIndexId" : false})
      { "ok" : 1 }
      > db.system.indexes.find()
      > db.createCollection("test2")
      { "ok" : 1 }
      > db.system.indexes.find()
      { "v" : 1, "key" : { "_id" : 1 }, "ns" : "test.test2", "name" : "_id_" }
      >

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              sverch Shaun Verch
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: