Skip to content

Commit ee2dd09

Browse files
Tony Sansonekay-kim
authored andcommitted
(DOCS-9990, -10826): Updated flushRouterConfig.
1 parent 22ae142 commit ee2dd09

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

source/reference/command/flushRouterConfig.txt

Lines changed: 14 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,12 @@ flushRouterConfig
2929
:dbcommand:`flushRouterConfig` is an administrative command that is
3030
only available for :binary:`~bin.mongos` instances.
3131

32+
Call this command using the following form:
33+
34+
.. example::
35+
36+
.. code-block:: javascript
37+
38+
db.adminCommand("flushRouterConfig")
39+
3240
.. versionadded:: 1.8.2

0 commit comments

Comments
 (0)