Skip to content
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
8 changes: 7 additions & 1 deletion source/tutorial/change-oplog-size.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,13 @@ The following operation runs the ``compact`` command against the
.. code-block:: javascript

use local
db.runCommand({ "compact" : "oplog.rs" } )
db.runCommand({ "compact" : "oplog.rs" })

If the disk space allocated to the original oplog size is not
reclaimed, restart :binary:`~bin.mongod` and run the above commands
again. Restarting :binary:`~bin.mongod` runs recalculations in
:doc:`WiredTiger </core/wiredtiger>` that might allow ``compact`` to
release more space to the OS.

For clusters enforcing :ref:`authentication <authentication>`,
authenticate as a user with the :authaction:`compact` privilege
Expand Down