autoIndexId=false allowed on non capped collections

XMLWordPrintableJSON

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

      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
              Reporter:
              Shaun Verch (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: