Skip to content

Commit b431bda

Browse files
committed
Update source/reference/command/compact.txt
Changed the note about the status change for a compact to be a warning and altered the case of the states to make it more in line with what is actually displayed in rs.status() and added a link to the state definitions for more info.
1 parent e1266ce commit b431bda

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/reference/command/compact.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,13 @@ compact
165165
``force:true`` above for information regarding compacting the
166166
primary.
167167

168-
- If you run :dbcommand:`compact` on a secondary, the secondary
169-
will enter a "recovering" state to prevent clients from
168+
.. warning:: If you run :dbcommand:`compact` on a secondary, the
169+
secondary will enter a "RECOVERING" state to prevent clients from
170170
sending read operations during compaction. Once the compaction
171-
finishes the secondary will automatically return to secondary
172-
state.
171+
finishes the secondary will automatically return to "SECONDARY"
172+
state. See :status:`members.state` for more information on states.
173173

174-
You may refer to the "`partial script for automating step down
174+
- You may refer to the "`partial script for automating step down
175175
and compaction <https://github.com/mongodb/mongo-snippets/blob/master/js/compact-example.js>`_")
176176
for an example.
177177

0 commit comments

Comments
 (0)