@@ -18,7 +18,7 @@ Definition
1818 Removes the association between a range of shard key values and a
1919 :term:`zone`.
2020
21- :method:` sh.removeRangeFromZone()` takes the following arguments :
21+ `` sh.removeRangeFromZone()`` takes the following fields :
2222
2323
2424 .. list-table::
@@ -60,25 +60,22 @@ Definition
6060
6161 Specify each field of the shard key in the form of ``<fieldname> : <value>``.
6262 The value must be of the same BSON type or types as the shard key.
63-
64-
65-
6663
6764
68- Use :method:` sh.removeRangeFromZone()` to remove the association between
69- unused, out of date, or conflicting ranges and a zone.
65+ Use `` sh.removeRangeFromZone()` ` to remove the association between
66+ unused, out of date, or conflicting shard key ranges and a zone.
7067
7168 If no range matches the minimum and maximum bounds passed to
72- :method:`~ sh.removeShardFromZone() `, nothing is removed.
69+ `` sh.removeRangeFromZone()` `, nothing is removed.
7370
74- Only issue :method:` sh.removeTagRange() ` when connected to a
71+ Only run `` sh.removeRangeFromZone()` ` when connected to a
7572 :binary:`~bin.mongos` instance.
7673
7774Behavior
7875--------
7976
80- :method:` sh.removeShardFromZone ()` does not remove the zone associated to the
81- specified range .
77+ `` sh.removeRangeFromZone ()`` doesn't remove the association between
78+ a zone and a shard. It also doesn't remove the zone itself .
8279
8380See the :ref:`zone <zone-sharding>` manual page for more information on zones
8481in sharded clusters.
@@ -112,11 +109,10 @@ must authenticate as either:
112109 or, alternatively
113110
114111- a user whose privileges include :authaction:`enableSharding` on the
115- :ref:`cluster <resource-specific-collection>` resource (available
116- starting in version 4.2.2, 4.0.14, 3.6.16).
112+ :ref:`cluster <resource-specific-collection>` resource.
117113
118114The :authrole:`clusterAdmin` or :authrole:`clusterManager` built-in roles have
119- the appropriate permissions for issuing :method:` sh.removeRangeFromZone()`.
115+ the appropriate permissions for running `` sh.removeRangeFromZone()` `.
120116See the documentation page for :ref:`Role-Based Access Control
121117<authorization>` for more information.
122118
@@ -152,7 +148,7 @@ specifies ``{ a : 0 }`` as the ``min`` bound:
152148
153149While the range of ``{ a : 0 }`` and ``{ a : 10 }`` encompasses the existing
154150range, it is not an exact match and therefore
155- :method:` sh.removeRangeFromZone()` does not remove anything.
151+ `` sh.removeRangeFromZone()` ` does not remove anything.
156152
157153Compound Shard Key
158154~~~~~~~~~~~~~~~~~~
@@ -171,5 +167,5 @@ bound of ``{ a : 1, b : 1}`` and an upper bound of ``{ a : 10, b : 10 }``:
171167Given the previous example, if there was an existing range with a lower bound
172168of ``{ a : 1, b : 5 }`` and an upper bound of ``{ a : 10, b : 1 }``, the
173169operation would *not* remove that range, as it is not an exact match of the
174- minimum and maximum passed to :method:` sh.removeRangeFromZone()`.
170+ minimum and maximum passed to `` sh.removeRangeFromZone()` `.
175171
0 commit comments