From 2d3adfdd02b4c8106fd4a14fe36bb3c401e84b6b Mon Sep 17 00:00:00 2001 From: kay Date: Fri, 21 Sep 2012 10:12:44 -0400 Subject: [PATCH 1/2] DOCS-518 add replSetMaintenance --- .../reference/command/replSetMaintenance.txt | 25 +++++++++++++++++++ source/reference/commands.txt | 3 +++ 2 files changed, 28 insertions(+) create mode 100644 source/reference/command/replSetMaintenance.txt diff --git a/source/reference/command/replSetMaintenance.txt b/source/reference/command/replSetMaintenance.txt new file mode 100644 index 00000000000..9af4bc8843d --- /dev/null +++ b/source/reference/command/replSetMaintenance.txt @@ -0,0 +1,25 @@ +================== +replSetMaintenance +================== + +.. default-domain:: mongodb + +.. dbcommand:: replSetMaintenance + + The :dbcommand:`replSetMaintenance` command enables/disables the maintenance + mode. + + The command has the following prototype format: + + .. code-block:: javascript + + { replSetMaintenance: } + + Consider the following behavior when running the + :dbcommand:`replSetMaintenance` command: + + - You cannot run the command on the Primary. + - You must run the command against the ``admin`` database. + - When enabled ``replSetMaintenance: 1``, the member will change state to ``RECOVERING``. + + .. admin-only diff --git a/source/reference/commands.txt b/source/reference/commands.txt index efcd7af7279..a73172e66e8 100644 --- a/source/reference/commands.txt +++ b/source/reference/commands.txt @@ -387,6 +387,9 @@ Internal Use .. include:: command/replSetFresh.txt :start-after: mongodb +.. include:: command/replSetMaintenance.txt + :start-after: mongodb + .. include:: command/replSetTest.txt :start-after: mongodb From 2e799c2a5f34da738311028b98e2edfdca334362 Mon Sep 17 00:00:00 2001 From: kay Date: Fri, 21 Sep 2012 16:36:15 -0400 Subject: [PATCH 2/2] DOCS-518 document replSetMaintenance command --- source/reference/command/replSetMaintenance.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/reference/command/replSetMaintenance.txt b/source/reference/command/replSetMaintenance.txt index 9af4bc8843d..846e41c44a1 100644 --- a/source/reference/command/replSetMaintenance.txt +++ b/source/reference/command/replSetMaintenance.txt @@ -19,7 +19,14 @@ replSetMaintenance :dbcommand:`replSetMaintenance` command: - You cannot run the command on the Primary. + - You must run the command against the ``admin`` database. - - When enabled ``replSetMaintenance: 1``, the member will change state to ``RECOVERING``. + + - When enabled ``replSetMaintenance: 1``, the member will change + state to ``RECOVERING``. While the member is in ``RECOVERING`` state: + + - The member is not accessible for read operations. + + - The member continues to sync its :term:`oplog` from the Primary. .. admin-only