diff --git a/source/reference/command/compact.txt b/source/reference/command/compact.txt index cc2f8abaa1d..c4364e90305 100644 --- a/source/reference/command/compact.txt +++ b/source/reference/command/compact.txt @@ -165,13 +165,13 @@ compact ``force:true`` above for information regarding compacting the primary. - - If you run :dbcommand:`compact` on a secondary, the secondary - will enter a "recovering" state to prevent clients from + .. warning:: If you run :dbcommand:`compact` on a secondary, the + secondary will enter a "RECOVERING" state to prevent clients from sending read operations during compaction. Once the compaction - finishes the secondary will automatically return to secondary - state. + finishes the secondary will automatically return to "SECONDARY" + state. See :status:`members.state` for more information on states. - You may refer to the "`partial script for automating step down + - You may refer to the "`partial script for automating step down and compaction `_") for an example.