diff --git a/source/reference/collection-statistics.txt b/source/reference/collection-statistics.txt index 8dd804dc020..6fcedb0d2d0 100644 --- a/source/reference/collection-statistics.txt +++ b/source/reference/collection-statistics.txt @@ -48,7 +48,7 @@ Or: Example Document ---------------- -The output of :method:`db.collection.stats()` resembles the following: +The output of :method:`db.collection.stats()` resembles the following: .. code-block:: javascript @@ -115,13 +115,13 @@ Fields The number of indexes on the collection. All collections have at least one index on the :term:`_id` field. - + .. versionchanged:: 2.2 Before 2.2, capped collections did not necessarily have an index on the ``_id`` field, and some capped collections created with pre-2.2 versions of :program:`mongod` may not have an ``_id`` index. - + .. stats:: lastExtentSize @@ -159,7 +159,9 @@ Fields .. versionadded:: 2.2 Reports the flags on this collection set by the user. In version - 2.2 the only user flag is ``usePowerOf2Sizes``. + 2.2 the only user flag is :collflag:`usePowerOf2Sizes`. + If :collflag:`usePowerOf2Sizes` is enabled, :stats:`userFlags` will + be set to ``1``, otherwise :stats:`userFlags` will be ``0``. See :dbcommand:`collMod` for more information on setting user flags and :ref:`usePowerOf2Sizes `.