@@ -16,37 +16,27 @@ sh.addShardTag()
1616
1717 :method:`sh.addShardTag()` associates a shard with a tag or
1818 identifier.
19- MongoDB can use these identifiers to direct :term:`chunks <chunk>`
20- which fall within a tagged range to a specific shard.
21- Chunks are associated with a tag range using the
19+ MongoDB uses these identifiers to direct :term:`chunks <chunk>`
20+ that fall within a tagged range to specific shards.
21+
22+ Chunks are associated with a tag range using the
2223 :method:`sh.addTagRange()` method.
2324
2425 Always issue :method:`sh.addShardTag()` when connected to a
2526 :program:`mongos` instance.
2627
27- .. warning::
28-
29- The :program:`mongo` shell does not verify that you are
30- connected to a :program:`mongos` instance. If you are
31- connected to a :program:`mongod` instance, :method:`sh.addShardTag()`
32- will add the shard tags to a collection in a ``config``
33- database, not to the tags collection on your configuration
34- server.
35-
3628 .. example::
3729
38- The following example adds three tags, ``LGA ``, ``EWR ``, and
39- ``JFK ``, to three shards:
30+ The following example adds three tags, ``NYC ``, ``LAX ``, and
31+ ``NRT ``, to three shards:
4032
4133 .. code-block:: javascript
4234
43- sh.addShardTag("shard0000", "LGA")
44- sh.addShardTag("shard0001", "EWR")
45- sh.addShardTag("shard0002", "JFK")
46-
47- .. seealso::
35+ sh.addShardTag("shard0000", "NYC")
36+ sh.addShardTag("shard0001", "LAX")
37+ sh.addShardTag("shard0002", "NRT")
4838
49- * :method:`sh.addTagRange()`
50- * :method:`sh.removeShardTag()`
39+ .. seealso::
5140
52- .. TODO: SERVER-6357 will add dbcommands to replace these methods
41+ :method:`sh.addTagRange()`,
42+ :method:`sh.removeShardTag()`
0 commit comments