@@ -21,52 +21,69 @@ replSetReconfig
21
21
.. |method| replace:: :method:`rs.reconfig` helper method
22
22
.. include:: /includes/fact-dbcommand-tip
23
23
24
- The command has the following syntax:
24
+ Compatibility
25
+ -------------
25
26
26
- .. code-block:: javascript
27
+ This command is available in deployments hosted in the following environments:
27
28
28
- db.adminCommand({
29
- replSetReconfig: <new_config_document>,
30
- force: <boolean>,
31
- maxTimeMS: <int>
32
- })
29
+ .. include:: /includes/fact-environments-atlas-only.rst
33
30
34
- The command takes the following optional field:
31
+ .. include:: /includes/fact-environments-atlas-support-no-free-or-m10.rst
35
32
36
- .. list-table::
37
- :header-rows: 1
38
- :widths: 20 80
33
+ .. include:: /includes/fact-environments-onprem-only.rst
39
34
40
- * - Field
41
- - Description
35
+ Syntax
36
+ ------
42
37
43
- * - .. _replSetReconfig-cmd-force:
44
-
45
- :ref:`force <replSetReconfig-cmd-force>`
38
+ The command has the following syntax:
46
39
47
- - Defaults to ``false``. Specify ``true`` to force the
48
- available replica set members to accept the new configuration.
40
+ .. code-block:: javascript
41
+
42
+ db.adminCommand({
43
+ replSetReconfig: <new_config_document>,
44
+ force: <boolean>,
45
+ maxTimeMS: <int>
46
+ })
47
+
48
+ Command Fields
49
+ --------------
50
+
51
+ The command takes the following optional field:
52
+
53
+ .. list-table::
54
+ :header-rows: 1
55
+ :widths: 20 80
56
+
57
+ * - Field
58
+ - Description
59
+
60
+ * - .. _replSetReconfig-cmd-force:
61
+
62
+ :ref:`force <replSetReconfig-cmd-force>`
63
+
64
+ - Defaults to ``false``. Specify ``true`` to force the
65
+ available replica set members to accept the new configuration.
49
66
50
- Force reconfiguration can result in unexpected or
51
- undesired behavior, including :ref:`rollback
52
- <replica-set-rollbacks>` of :writeconcern:`"majority"`
53
- committed writes.
67
+ Force reconfiguration can result in unexpected or
68
+ undesired behavior, including :ref:`rollback
69
+ <replica-set-rollbacks>` of :writeconcern:`"majority"`
70
+ committed writes.
54
71
55
- * - .. _replSetReconfig-cmd-maxTimeMS:
72
+ * - .. _replSetReconfig-cmd-maxTimeMS:
56
73
57
- :ref:`maxTimeMS <replSetReconfig-cmd-maxTimeMS>`
74
+ :ref:`maxTimeMS <replSetReconfig-cmd-maxTimeMS>`
58
75
59
- - Optional. Specifies a cumulative time limit in milliseconds
60
- for processing the :dbcommand:`replSetReconfig`. By default,
61
- :dbcommand:`replSetReconfig` waits indefinitely for the
62
- replica configuration to propagate to a majority of replica
63
- set members. Setting ``maxTimeMS`` may result
64
- in the operation failing *before* it can apply the new
65
- configuration. See :ref:`replSetReconfig-cmd-majority-install`
66
- for more information.
76
+ - Optional. Specifies a cumulative time limit in milliseconds
77
+ for processing the :dbcommand:`replSetReconfig`. By default,
78
+ :dbcommand:`replSetReconfig` waits indefinitely for the
79
+ replica configuration to propagate to a majority of replica
80
+ set members. Setting ``maxTimeMS`` may result
81
+ in the operation failing *before* it can apply the new
82
+ configuration. See :ref:`replSetReconfig-cmd-majority-install`
83
+ for more information.
67
84
68
- You may also run :dbcommand:`replSetReconfig` with the shell's
69
- :method:`rs.reconfig()` method.
85
+ You may also run :dbcommand:`replSetReconfig` with the shell's
86
+ :method:`rs.reconfig()` method.
70
87
71
88
.. slave-ok, admin-only
72
89
0 commit comments