File tree Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Expand file tree Collapse file tree 2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
1
+ ==================
2
+ replSetMaintenance
3
+ ==================
4
+
5
+ .. default-domain:: mongodb
6
+
7
+ .. dbcommand:: replSetMaintenance
8
+
9
+ The :dbcommand:`replSetMaintenance` command enables/disables the maintenance
10
+ mode.
11
+
12
+ The command has the following prototype format:
13
+
14
+ .. code-block:: javascript
15
+
16
+ { replSetMaintenance: <boolean> }
17
+
18
+ Consider the following behavior when running the
19
+ :dbcommand:`replSetMaintenance` command:
20
+
21
+ - You cannot run the command on the Primary.
22
+ - You must run the command against the ``admin`` database.
23
+ - When enabled ``replSetMaintenance: 1``, the member will change state to ``RECOVERING``.
24
+
25
+ .. admin-only
Original file line number Diff line number Diff line change @@ -387,6 +387,9 @@ Internal Use
387
387
.. include:: command/replSetFresh.txt
388
388
:start-after: mongodb
389
389
390
+ .. include:: command/replSetMaintenance.txt
391
+ :start-after: mongodb
392
+
390
393
.. include:: command/replSetTest.txt
391
394
:start-after: mongodb
392
395
You can’t perform that action at this time.
0 commit comments