[DOCS-841] Extra double-quote in collMod command prototype, and need for an example of setting usePowerOfSizes Created: 04/Dec/12  Updated: 30/Oct/23  Resolved: 04/Dec/12

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: Ian Daniel Assignee: Ed Costello
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to DOCS-842 Document what collection.stats() user... Closed
Participants:
Days since reply: 11 years, 11 weeks, 1 day ago

 Description   

In http://docs.mongodb.org/manual/reference/command/collMod/, there is an extra double-quote in the command prototype. Currently it is:

db.runCommand( {"collMod" : [collection] , "[flag]" : [value]" } )

whereas it should be:

db.runCommand( {"collMod" : [collection] , "[flag]" : [value] } )

That is, remove the last double-quote.

We should also provide an example of setting, and unsetting powerOf2Sizes. That is:

db.runCommand( {"collMod" : books , "usePowerOf2Sizes" : true } )

It is important that we specify not to put quotes around the true or false, as that might lead someone to do this:

db.runCommand( {"collMod" : books , "usePowerOf2Sizes" : "false" } )

This does not do what is intended. It leaves usePowerOf2Sizes enabled. The correct syntax is:

db.runCommand( {"collMod" : books , "usePowerOf2Sizes" : false } )

That is, without the quotes around false.



 Comments   
Comment by auto [ 04/Dec/12 ]

Author:

{u'date': u'2012-12-04T17:58:05Z', u'email': u'samk@10gen.com', u'name': u'Sam Kleinman'}

Message: merge: DOCS-841
Branch: master
https://github.com/mongodb/docs/commit/91d6839ef184579b72bdc8312f71abb31fc5d55f

Comment by auto [ 04/Dec/12 ]

Author:

{u'date': u'2012-12-04T15:56:30Z', u'email': u'epc@10gen.com', u'name': u'Ed Costello'}

Message: DOCS-841 change from [] to <> for variable portions
Branch: master
https://github.com/mongodb/docs/commit/808677f7905f0fb709cf622c07f5327a66f6bd9a

Comment by auto [ 04/Dec/12 ]

Author:

{u'date': u'2012-12-04T14:28:40Z', u'email': u'epc@10gen.com', u'name': u'Ed Costello'}

Message: DOCS-841 add examples for usePowerOf2Sizes, remove random double quote
Branch: master
https://github.com/mongodb/docs/commit/9288cf911fde094cc5c3e88bd8c26a9b431ae821

Comment by Ed Costello [ 04/Dec/12 ]

Fix pushed to github.

Generated at Thu Feb 08 07:39:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.