@@ -58,7 +58,7 @@ The command has the following syntax:
58
58
},
59
59
...
60
60
],
61
- forceDistribution : <bool>
61
+ forceRedistribution : <bool>
62
62
}
63
63
)
64
64
@@ -113,7 +113,7 @@ The command takes the following fields:
113
113
114
114
* - ``collation``
115
115
- document
116
- - Optional. If the collection specified to ``reshardCollection``
116
+ - Optional. If the collection specified in ``reshardCollection``
117
117
has a default :ref:`collation <collation>`, you *must* include a
118
118
collation document with ``{ locale : "simple" }``, or the
119
119
``reshardCollection`` command fails.
@@ -125,8 +125,8 @@ The command takes the following fields:
125
125
126
126
* - ``forceRedistribution``
127
127
- boolean
128
- - Optional. When set to ``true``, the operation executes even if the new
129
- shard key is the same as the old shard key. Use with the
128
+ - Optional. If set to ``true``, the operation runs even if the new
129
+ shard key is the same as the old shard key. Use with the
130
130
``zones`` option to move data to specific zones.
131
131
132
132
.. versionadded:: 7.2
@@ -201,8 +201,8 @@ Commit Phase
201
201
202
202
:ref:`sharding-resharding`
203
203
204
- Example
205
- -------
204
+ Examples
205
+ --------
206
206
207
207
Reshard a Collection
208
208
~~~~~~~~~~~~~~~~~~~~
@@ -217,9 +217,10 @@ new shard key ``{ order_id: 1 }``:
217
217
key: { order_id: 1 }
218
218
})
219
219
220
- MongoDB returns the following :
220
+ Output :
221
221
222
222
.. code-block:: javascript
223
+ :copyable: false
223
224
224
225
{
225
226
ok: 1,
0 commit comments