@@ -20,7 +20,7 @@ Definition
2020 Removes the association between a range of shard key values and a
2121 :term:`zone`.
2222
23- :method:` sh.removeRangeFromZone()` takes the following arguments :
23+ `` sh.removeRangeFromZone()`` takes the following fields :
2424
2525
2626 .. list-table::
@@ -62,25 +62,22 @@ Definition
6262
6363 Specify each field of the shard key in the form of ``<fieldname> : <value>``.
6464 The value must be of the same BSON type or types as the shard key.
65-
66-
67-
6865
6966
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.
7269
7370 If no range matches the minimum and maximum bounds passed to
74- :method:`~ sh.removeShardFromZone() `, nothing is removed.
71+ `` sh.removeRangeFromZone()` `, nothing is removed.
7572
76- Only issue :method:` sh.removeTagRange() ` when connected to a
73+ Only run `` sh.removeRangeFromZone()` ` when connected to a
7774 :binary:`~bin.mongos` instance.
7875
7976Behavior
8077--------
8178
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 .
8481
8582See the :ref:`zone <zone-sharding>` manual page for more information on zones
8683in sharded clusters.
@@ -114,11 +111,10 @@ must authenticate as either:
114111 or, alternatively
115112
116113- 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.
119115
120116The :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()` `.
122118See the documentation page for :ref:`Role-Based Access Control
123119<authorization>` for more information.
124120
@@ -154,7 +150,7 @@ specifies ``{ a : 0 }`` as the ``min`` bound:
154150
155151While the range of ``{ a : 0 }`` and ``{ a : 10 }`` encompasses the existing
156152range, it is not an exact match and therefore
157- :method:` sh.removeRangeFromZone()` does not remove anything.
153+ `` sh.removeRangeFromZone()` ` does not remove anything.
158154
159155Compound Shard Key
160156~~~~~~~~~~~~~~~~~~
@@ -173,5 +169,5 @@ bound of ``{ a : 1, b : 1}`` and an upper bound of ``{ a : 10, b : 10 }``:
173169Given the previous example, if there was an existing range with a lower bound
174170of ``{ a : 1, b : 5 }`` and an upper bound of ``{ a : 10, b : 1 }``, the
175171operation 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()` `.
177173
0 commit comments