Skip to content

Update source/reference/command/compact.txt #506

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 3, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions source/reference/command/compact.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://github.com/mongodb/mongo-snippets/blob/master/js/compact-example.js>`_")
for an example.

Expand Down