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
1469
1469
there are no errors in the data storage.
1470
1470
1471
1471
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:
1474
1475
1475
1476
.. code-block:: javascript
1476
1477
@@ -1507,12 +1508,11 @@ Administration
1507
1508
.. note::
1508
1509
1509
1510
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
1512
1513
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.
1516
1516
1517
1517
.. dbcommand:: shutdown
1518
1518
Original file line number Diff line number Diff line change @@ -334,8 +334,9 @@ Options
334
334
335
335
.. option:: --repair
336
336
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.
339
340
340
341
.. include:: /includes/warning-repair.rst
341
342
You can’t perform that action at this time.
0 commit comments