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

autoIndexId=false allowed on non capped collections

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Shell
    • None
    • ALL

      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_" }
      >
      

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

              Created:
              Updated:
              Resolved: