Skip to content

DOCS-5715: Add warning on lock scope for dropIndexes shell helpers #3076

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 6, 2017
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
5 changes: 5 additions & 0 deletions source/reference/method/db.collection.dropIndex.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ Definition
:method:`db.collection.dropIndex()` method, use the
:method:`db.collection.getIndexes()` method.

.. warning::

This command obtains a write lock on the affected database and
will block other operations until it has completed.

Example
-------

Expand Down
5 changes: 5 additions & 0 deletions source/reference/method/db.collection.dropIndexes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ db.collection.dropIndexes()
Drops all indexes other than the required index on the ``_id``
field. Only call :method:`~db.collection.dropIndexes()` as a method on a
collection object.

.. warning::

This command obtains a write lock on the affected database and
will block other operations until it has completed.