Skip to content

Commit 476d3d4

Browse files
committed
Fixed example for size alloc in capped collections
DOCS ticket: https://jira.mongodb.org/browse/DOCS-758
1 parent 4d7f593 commit 476d3d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/reference/method/db.createCollection.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ db.createCollection()
4949

5050
.. code-block:: javascript
5151

52-
db.createCollection("log", { capped : true, size : 536870912, max : 5000 } )
52+
db.createCollection("log", { capped : true, size : 5242880, max : 5000 } )
5353

5454
This command creates a collection named log with a maximum size of
55-
5 megabytes (512 kilobytes) or a maximum of 5000 documents.
55+
5 megabytes (5*1024*1024 bytes) or a maximum of 5000 documents.
5656

5757
The following command simply pre-allocates a 2 gigabyte, uncapped,
5858
collection named ``people``:

0 commit comments

Comments
 (0)