[SERVER-3176] autoIndexId not honored in mongo shell's createCollection command Created: 01/Jun/11 Updated: 12/Jul/16 Resolved: 11/Jul/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | JavaScript, Shell |
| Affects Version/s: | 1.8.1 |
| Fix Version/s: | 1.9.1 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Joachim | Assignee: | Antoine Girbal |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu, Mac OS X |
||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
DESCRIPTION Specifying autoIndexId : false while creating a capped collection from the JS mongo shell does not prevent creation of an index on _id. STEPS TO REPRODUCE $ mongo > use test ); { "ok" : 1 }> db.mycoll.getIndexes() , > db._dbCommand( {create:"mycoll2", size:10000000, autoIndexId:false}) { "ok" : 1 }> db.mycoll2.getIndexes() SUGGESTED RESOLUTION The current createCollection JS function does not copy the autoIndexId parameter from the passed-in opt object. If the parameter is set in opt, also set it in the cmd object. Current code: ; |
| Comments |
| Comment by auto [ 11/Jul/11 ] |
|
Author: {u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}Message: |
| Comment by Antoine Girbal [ 11/Jul/11 ] |
|
resolved with tests |
| Comment by auto [ 11/Jul/11 ] |
|
Author: {u'login': u'agirbal', u'name': u'agirbal', u'email': u'antoine@10gen.com'}Message: |