File tree Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Expand file tree Collapse file tree 3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,15 @@ reIndex
23
23
24
24
- Avoid running :dbcommand:`reIndex` for a replica set.
25
25
26
- - Do not run :dbcommand:`reIndex` for a sharded cluster.
26
+ - Do not run :dbcommand:`reIndex` against a collection in a
27
+ sharded cluster.
28
+
29
+ .. versionchanged:: 4.2
30
+
31
+ MongoDB disallows :dbcommand:`reIndex` to be run on a
32
+ :binary:`~bin.mongos`, implementing a stronger restriction
33
+ against running :dbcommand:`reIndex` for a collection in a
34
+ sharded cluster.
27
35
28
36
Use the following syntax:
29
37
Original file line number Diff line number Diff line change @@ -28,6 +28,13 @@ db.collection.reIndex()
28
28
- Do not run :method:`db.collection.reIndex()` against a
29
29
collection in a sharded cluster.
30
30
31
+ .. versionchanged:: 4.2
32
+
33
+ MongoDB disallows :method:`db.collection.reIndex()` to be
34
+ run on a :binary:`~bin.mongos`, implementing a stronger
35
+ restriction against running
36
+ :method:`db.collection.reIndex()` for a collection in a
37
+ sharded cluster.
31
38
32
39
Behavior
33
40
--------
Original file line number Diff line number Diff line change @@ -133,6 +133,15 @@ As alternatives:
133
133
:doc:`/tutorial/recover-data-following-unexpected-shutdown` for
134
134
details.
135
135
136
+ General Changes
137
+ ---------------
138
+
139
+ - MongoDB implements a stronger restriction on running
140
+ :dbcommand:`reIndex` command and :method:`db.collection.reIndex()`
141
+ shell helper against a collection in a sharded cluster by disallowing
142
+ :dbcommand:`reIndex` and :method:`db.collection.reIndex()` on a
143
+ :binary:`~bin.mongos`.
144
+
136
145
.. _4.2-compatibility-enabled:
137
146
138
147
4.2 Feature Compatibilitity
You can’t perform that action at this time.
0 commit comments