Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/core/capped-collections.txt
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ the :dbcommand:`convertToCapped` command:
The ``size`` parameter specifies the size of the capped collection in
bytes.

.. include:: /includes/warning-blocking-global.rst
.. include:: /includes/fact-database-lock.rst

Automatically Remove Data After a Specified Period of Time
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 2 additions & 0 deletions source/faq/concurrency.txt
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ lock at the database level for extended periods:
- :method:`db.collection.validate()`, and
- :method:`db.copyDatabase()`. This operation may lock all
databases. See :ref:`faq-concurrency-lock-multiple-dbs`.
- :dbcommand:`convertToCapped`
- :dbcommand:`cloneCollectionAsCapped`

The following administrative commands lock the database but only hold
the lock for a very short time:
Expand Down
4 changes: 4 additions & 0 deletions source/includes/fact-database-lock.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
This holds a database exclusive lock for the duration of the operation.
Other operations which lock the same database will be blocked until the
operation completes. See :ref:`faq-concurrency-operations-locks` for
operations that lock the database.
4 changes: 3 additions & 1 deletion source/reference/command/cloneCollectionAsCapped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Definition
distinct and cannot be the same as that of the original existing
collection.

* - size
* - ``size``
- number
- Maximum size of the capped collection.

Expand Down Expand Up @@ -92,3 +92,5 @@ Behavior
If the ``capped size`` is less than the size of the source collection,
then not all documents in the source collection will exist in the destination
capped collection.

.. include:: /includes/fact-database-lock.rst
2 changes: 2 additions & 0 deletions source/reference/command/convertToCapped.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ command exhibits the following behavior:
- :dbcommand:`renameCollection` renames the new capped collection
to the name of the original collection.

- .. include:: /includes/fact-database-lock.rst

.. note::

MongoDB does not support the :dbcommand:`convertToCapped`
Expand Down