File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,26 @@ Index Operations When :readconcern:`"majority"` Read Concern is Disabled
207207Size Limitations
208208~~~~~~~~~~~~~~~~
209209
210- MongoDB does not limit the amount of data you can roll back.
210+ MongoDB supports the following rollback algorithms, which have different size limitations:
211+
212+ - **Recover to a Timestamp**, where a former primary reverts to a consistent point in time and
213+ applies operations until it catches up to the sync source's branch of history. This is the
214+ default rollback algorithm.
215+
216+ When using this algorithm, MongoDB does not limit the amount of data you can roll back.
217+
218+ - **Rollback via Refetch**, where a former primary finds the common point between its :term:`oplog`
219+ and the sync source's oplog. Then, the member examines and reverts all operations in its oplog until
220+ it reaches this common point. Rollback via Refetch occurs only when the
221+ :setting:`~replication.enableMajorityReadConcern` setting in your configuration file is set to
222+ ``false``.
223+
224+ When using this algorithm, MongoDB can only roll back up to 300 MB of data.
225+
226+ .. note::
227+
228+ Starting in MongoDB 5.0, :setting:`~replication.enableMajorityReadConcern` is set to
229+ ``true`` and cannot be changed.
211230
212231.. _rollback-time-limit:
213232
You can’t perform that action at this time.
0 commit comments