Skip to content

Commit 4173b82

Browse files
DOCSP-28324 Update getShardDistribution method syntax (#6241) (#6272)
* DOCSP-28324 remove tip and update syntax * DOCSP-28324 fix build error * DOCSP-28324 fix build error
1 parent af60fcd commit 4173b82

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

source/reference/method/db.collection.getShardDistribution.txt

+6-11
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,15 @@ Definition
2222
Prints the data distribution statistics for a :term:`sharded
2323
<sharding>` collection.
2424

25-
.. tip::
26-
27-
Before running the method, use the :dbcommand:`flushRouterConfig`
28-
command to refresh the cached routing table to avoid returning
29-
stale distribution information for the collection. Once
30-
refreshed, run :method:`db.collection.getShardDistribution()` for
31-
the collection you wish to build the index.
25+
Syntax
26+
------
3227

33-
For example:
28+
The :method:`~db.collection.getShardDistribution()` method has the following
29+
form:
3430

35-
.. code-block:: javascript
31+
.. code-block:: javascript
3632

37-
db.adminCommand( { flushRouterConfig: "test.myShardedCollection" } );
38-
db.getSiblingDB("test").myShardedCollection.getShardDistribution();
33+
db.collection.getShardDistribution()
3934

4035
.. seealso::
4136

0 commit comments

Comments
 (0)