@@ -96,22 +96,31 @@ Behavior
96
96
97
97
.. include:: /includes/warning-blocking-global.rst
98
98
99
- .. note:: :dbcommand:`repairDatabase` requires free disk space equal to the size
100
- of your current data set plus 2 gigabytes. If the volume that holds dbpath
101
- lacks sufficient space, you can mount a separate volume
102
- and use that for the repair. When mounting a separate volume for
103
- :dbcommand:`repairDatabase` you must run :dbcommand:`repairDatabase`
104
- from the command line and use the
105
- :option:`--repairpath <mongod --repairpath>`
106
- switch to specify the folder in which to store
107
- temporary repair files.
108
-
109
-
110
99
The time requirement for :dbcommand:`repairDatabase` depends on the
111
100
size of the data set.
112
101
113
102
:dbcommand:`repairDatabase` recreates all indexes in the database.
114
103
104
+ MMAPv1
105
+ ~~~~~~
106
+
107
+ :dbcommand:`repairDatabase` requires free disk space equal to the size of your
108
+ current data set plus 2 gigabytes.
109
+ If the volume that holds dbpath lacks sufficient space, you can mount a separate volume
110
+ and use that for the repair. When mounting a separate volume for
111
+ :dbcommand:`repairDatabase` you must run :dbcommand:`repairDatabase`
112
+ from the command line and use the
113
+ :option:`--repairpath <mongod --repairpath>`
114
+ switch to specify the folder in which to store
115
+ temporary repair files.
116
+
117
+ WiredTiger
118
+ ~~~~~~~~~~
119
+
120
+ :dbcommand:`repairDatabase` performs the operation in-place and does not require
121
+ additional disk space.
122
+
123
+
115
124
``repairDatabase`` and ``compact``
116
125
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
117
126
0 commit comments