Skip to content

Commit 8f2e02a

Browse files
stenniejdestefano-mongo
authored andcommitted
DOCS-5715: Add warning on lock scope for dropIndexes shell helpers
1 parent 7123cf7 commit 8f2e02a

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

source/reference/method/db.collection.dropIndex.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ Definition
3232
:method:`db.collection.dropIndex()` method, use the
3333
:method:`db.collection.getIndexes()` method.
3434

35+
.. warning::
36+
37+
This command obtains a write lock on the affected database and
38+
will block other operations until it has completed.
39+
3540
Example
3641
-------
3742

source/reference/method/db.collection.dropIndexes.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,8 @@ db.collection.dropIndexes()
1515
Drops all indexes other than the required index on the ``_id``
1616
field. Only call :method:`~db.collection.dropIndexes()` as a method on a
1717
collection object.
18+
19+
.. warning::
20+
21+
This command obtains a write lock on the affected database and
22+
will block other operations until it has completed.

0 commit comments

Comments
 (0)