[SERVER-12051] autoIndexId=false allowed on non capped collections Created: 11/Dec/13  Updated: 10/Dec/14  Resolved: 11/Dec/13

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Shaun Verch Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to DOCS-3521 db.createCollection() page incorrectl... Closed
is related to SERVER-8237 autoIndexId:false should be disabled Closed
is related to SERVER-3176 autoIndexId not honored in mongo shel... Closed
Operating System: ALL
Participants:

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



 Comments   
Comment by Eliot Horowitz (Inactive) [ 11/Dec/13 ]

Not documented, but is supposed to work

Generated at Thu Feb 08 03:27:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.