File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -1469,8 +1469,9 @@ Administration
14691469 there are no errors in the data storage.
14701470
14711471 As a side effect, the :dbcommand:`repairDatabase` command will
1472- compact the database, as the :dbcommand:`compact` command. Use the
1473- following syntax.
1472+ compact the database, as the :dbcommand:`compact` command and
1473+ reduce the total size of the data files on disk. Use the following
1474+ syntax:
14741475
14751476 .. code-block:: javascript
14761477
@@ -1507,12 +1508,11 @@ Administration
15071508 .. note::
15081509
15091510 This command will fail if your database is not a master or
1510- primary. In most cases, you should recover a currupt secondary
1511- using the data from an existing intact node. If you need to
1511+ primary. In most cases, you should recover a corrupt secondary
1512+ using the data from an existing intact node. If you must
15121513 repair a secondary or slave node, first restart the node as a
1513- standalone mongod by omitting the :option:`--replSet <mongod
1514- --replSet>` or :option:`--slave <mongod --slave>` options, as
1515- necessary.
1514+ standalone mongod by omitting the :option:`--replSet <mongod --replSet>`
1515+ or :option:`--slave <mongod --slave>` options, as necessary.
15161516
15171517.. dbcommand:: shutdown
15181518
Original file line number Diff line number Diff line change @@ -334,8 +334,9 @@ Options
334334
335335.. option:: --repair
336336
337- Runs a repair routine on all databases. This is a similar operation
338- to the :dbcommand:`repairDatabase` database command.
337+ Runs a repair routine on all databases. This is equivalent
338+ to shutting down and running :dbcommand:`repairDatabase` database
339+ command on all databases.
339340
340341 .. include:: /includes/warning-repair.rst
341342
You can’t perform that action at this time.
0 commit comments