Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-758

createCollection capped example, size wrong

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      The example reads:

      db.createCollection("log", { capped : true, size : 536870912, max : 5000 } )

      which allocates 512 MB. Not 5 MB and not 512 kb, as it says below in the description.

      Attachments

        Activity

          People

            sam.kleinman Sam Kleinman (Inactive)
            thomas.rueckstiess@mongodb.com Thomas Rueckstiess
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              11 years, 12 weeks, 2 days ago