[DOCS-9271] Comment on: "manual/core/capped-collections.txt" Created: 03/Nov/16  Updated: 13/Dec/17  Resolved: 13/Dec/17

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

Type: Bug Priority: Minor - P4
Reporter: Docs Collector User (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: bite-sized, collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux - mongoDB 3.2.9

Location: https://docs.mongodb.com/manual/core/capped-collections/
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36
Referrer: https://www.google.be/
Screen Resolution: 1920 x 1200


Participants:
Days since reply: 6 years, 9 weeks, 1 day ago
Story Points: 0.25

 Description   

The option "size" is not respected when configuring a capped collection.

The option "maxSize" should be used instead.
In the documentation there is no reference to "maxSize"



 Comments   
Comment by Kay Kim (Inactive) [ 13/Dec/17 ]

Hi –
I believe the page is correct to use size and not maxSize.

db.createCollection("log", { capped : true, maxSize : 5000 } )
{
	"ok" : 0,
	"errmsg" : "specify size:<n> when capped is true",
	"code" : 14832,
	"codeName" : "Location14832"
}
> {
... "ok" : 0,
... "errmsg" : "specify size:<n> when capped is true",
... "code" : 14832
... }

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