Skip to content

Commit 2a3f277

Browse files
author
Tony Sansone
committed
(DOCS-9990, -10826): Updated flushRouterConfig.
1 parent 9a11d9b commit 2a3f277

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

source/reference/command/flushRouterConfig.txt

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ flushRouterConfig
1212

1313
.. dbcommand:: flushRouterConfig
1414

15-
:dbcommand:`flushRouterConfig` clears the current cluster
16-
information cached by a :binary:`~bin.mongos` instance and reloads all
17-
:term:`sharded cluster` metadata from the :term:`config database`.
15+
:dbcommand:`flushRouterConfig` clears the cached routing table in a
16+
:binary:`~bin.mongos` instance. Subsequent :binary:`~bin.mongos`
17+
commands update the routing table as routes are needed.
1818

19-
This forces an update when the configuration database holds data
20-
that is newer than the data cached in the :binary:`~bin.mongos`
21-
process.
19+
When this command is called, it forces an update when the
20+
configuration database holds data that is more recent than the data
21+
cached in the :binary:`~bin.mongos` process.
2222

2323
.. warning::
2424

@@ -29,4 +29,10 @@ flushRouterConfig
2929
:dbcommand:`flushRouterConfig` is an administrative command that is
3030
only available for :binary:`~bin.mongos` instances.
3131

32+
.. example::
33+
34+
.. code-block:: javascript
35+
36+
db.adminCommand("flushRouterConfig")
37+
3238
.. versionadded:: 1.8.2

0 commit comments

Comments
 (0)