Skip to content

Commit 2d3adfd

Browse files
committed
DOCS-518 add replSetMaintenance
1 parent 9b98544 commit 2d3adfd

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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

source/reference/commands.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,9 @@ Internal Use
387387
.. include:: command/replSetFresh.txt
388388
:start-after: mongodb
389389

390+
.. include:: command/replSetMaintenance.txt
391+
:start-after: mongodb
392+
390393
.. include:: command/replSetTest.txt
391394
:start-after: mongodb
392395

0 commit comments

Comments
 (0)