-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: manual
-
Labels:None
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.
- related to
-
DOCS-842 Document what collection.stats() userFlags value will be if usePowerOf2Sizes is enabled
- Closed