Skip to content

Commit d8cbdfb

Browse files
committed
DOCS-14257 db.collection.dropIndexes() 5.0 blurb update
1 parent de93ad8 commit d8cbdfb

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed

source/core/index-creation.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,9 @@ process:
554554
* - Mark the Index as Ready
555555

556556
- The :binary:`~bin.mongod` updates the index metadata to
557-
mark the index as ready for use.
557+
mark the index as ready for use.
558+
559+
.. _index-build-process-ready:
558560

559561
* - Lock
560562

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
The :method:`db.collection.dropIndexes()` command cannot drop
2+
:ref:`ready indexes <index-build-process-ready>`
3+
if there are any in-progress index builds.
4+
5+
- In versions 4.4.0-4.4.4 of MongoDB, this logic was not true
6+
due to a bug.

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ Definition
109109
Behavior
110110
--------
111111

112+
Cannot Drop ``Ready`` Indexes During In-Progress Index Builds
113+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
114+
115+
.. include:: /includes/fact-5.0-dropindexes-inprog.rst
116+
112117
Kill related queries only
113118
~~~~~~~~~~~~~~~~~~~~~~~~~
114119

source/release-notes/5.0.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,11 @@ truncations.
237237
Indexes
238238
-------
239239

240+
Cannot Drop ``Ready`` Indexes During In-Progress Index Builds
241+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
242+
243+
.. include:: /includes/fact-5.0-dropindexes-inprog.rst
244+
240245
Removal of ``geoHaystack`` Index and the ``geoSearch`` Command
241246
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
242247

0 commit comments

Comments
 (0)