@@ -20,7 +20,7 @@ Definition
20
20
Removes the association between a range of shard key values and a
21
21
:term:`zone`.
22
22
23
- :method:` sh.removeRangeFromZone()` takes the following arguments :
23
+ `` sh.removeRangeFromZone()`` takes the following fields :
24
24
25
25
26
26
.. list-table::
@@ -62,25 +62,22 @@ Definition
62
62
63
63
Specify each field of the shard key in the form of ``<fieldname> : <value>``.
64
64
The value must be of the same BSON type or types as the shard key.
65
-
66
-
67
-
68
65
69
66
70
- Use :method:` sh.removeRangeFromZone()` to remove the association between
71
- unused, out of date, or conflicting ranges and a zone.
67
+ Use `` sh.removeRangeFromZone()` ` to remove the association between
68
+ unused, out of date, or conflicting shard key ranges and a zone.
72
69
73
70
If no range matches the minimum and maximum bounds passed to
74
- :method:`~ sh.removeShardFromZone() `, nothing is removed.
71
+ `` sh.removeRangeFromZone()` `, nothing is removed.
75
72
76
- Only issue :method:` sh.removeTagRange() ` when connected to a
73
+ Only run `` sh.removeRangeFromZone()` ` when connected to a
77
74
:binary:`~bin.mongos` instance.
78
75
79
76
Behavior
80
77
--------
81
78
82
- :method:` sh.removeShardFromZone ()` does not remove the zone associated to the
83
- specified range .
79
+ `` sh.removeRangeFromZone ()`` doesn't remove the association between
80
+ a zone and a shard. It also doesn't remove the zone itself .
84
81
85
82
See the :ref:`zone <zone-sharding>` manual page for more information on zones
86
83
in sharded clusters.
@@ -114,11 +111,10 @@ must authenticate as either:
114
111
or, alternatively
115
112
116
113
- a user whose privileges include :authaction:`enableSharding` on the
117
- :ref:`cluster <resource-specific-collection>` resource (available
118
- starting in version 4.2.2, 4.0.14, 3.6.16).
114
+ :ref:`cluster <resource-specific-collection>` resource.
119
115
120
116
The :authrole:`clusterAdmin` or :authrole:`clusterManager` built-in roles have
121
- the appropriate permissions for issuing :method:` sh.removeRangeFromZone()`.
117
+ the appropriate permissions for running `` sh.removeRangeFromZone()` `.
122
118
See the documentation page for :ref:`Role-Based Access Control
123
119
<authorization>` for more information.
124
120
@@ -154,7 +150,7 @@ specifies ``{ a : 0 }`` as the ``min`` bound:
154
150
155
151
While the range of ``{ a : 0 }`` and ``{ a : 10 }`` encompasses the existing
156
152
range, it is not an exact match and therefore
157
- :method:` sh.removeRangeFromZone()` does not remove anything.
153
+ `` sh.removeRangeFromZone()` ` does not remove anything.
158
154
159
155
Compound Shard Key
160
156
~~~~~~~~~~~~~~~~~~
@@ -173,5 +169,5 @@ bound of ``{ a : 1, b : 1}`` and an upper bound of ``{ a : 10, b : 10 }``:
173
169
Given the previous example, if there was an existing range with a lower bound
174
170
of ``{ a : 1, b : 5 }`` and an upper bound of ``{ a : 10, b : 1 }``, the
175
171
operation would *not* remove that range, as it is not an exact match of the
176
- minimum and maximum passed to :method:` sh.removeRangeFromZone()`.
172
+ minimum and maximum passed to `` sh.removeRangeFromZone()` `.
177
173
0 commit comments