@@ -115,28 +115,33 @@ Request Body Parameters
115
115
.. versionadded:: 1.3.0
116
116
117
117
* - ``enableUserWriteBlocking``
118
- - boolean or string
118
+ - string or boolean
119
119
- Optional
120
- - If set to ``true``, blocks writes on the destination
121
- cluster while the migration is in progress, and unblocks writes right
122
- before the :ref:`/progress <c2c-api-progress>` endpoint reports
123
- that ``canWrite`` is ``true``. Blocks writes on the source
124
- cluster after ``mongosync`` calls the :ref:`/commit <c2c-api-commit>`
125
- endpoint.
120
+ - :gold:`IMPORTANT:` If you are migrating from a pre-6.0 source cluster,
121
+ you cannot set this parameter.
122
+
123
+ Supported options:
124
+
125
+ - ``"sourceAndDestination"``: blocks writes on the destination
126
+ cluster while the migration is in progress, and unblocks writes right
127
+ before the :ref:`/progress <c2c-api-progress>` endpoint reports
128
+ that ``canWrite`` is ``true``. Blocks writes on the source
129
+ cluster after ``mongosync`` calls the :ref:`/commit <c2c-api-commit>`
130
+ endpoint.
126
131
127
- If set to ``false``, no write blocking occurs .
132
+ You can also use ``true`` for backward compatibility .
128
133
129
- If set to ``"destinationOnly"``, blocks writes on the destination
130
- cluster while migration is in progress, and unblocks writes right
131
- before ``canWrite`` is ``true``.
134
+ - ``"none"``: no write blocking occurs. You can also use ``false``
135
+ for backward compatibility.
132
136
133
- :gold:`IMPORTANT:` If you are migrating from a pre-6.0 source cluster,
134
- you cannot set ``enableUserWriteBlocking`` to ``true``.
137
+ - ``"destinationOnly"``: blocks writes on the destination
138
+ cluster while migration is in progress, and unblocks writes right
139
+ before ``canWrite`` is ``true``.
135
140
136
141
To reverse sync, the ``enableUserWriteBlocking`` field must be set
137
- to ``true ``. To allow the source cluster to accept writes again,
138
- for example after running migration tests, run the following
139
- command:
142
+ to ``"sourceAndDestination" ``. To allow the source cluster
143
+ to accept writes again, for example after running migration tests,
144
+ run the following command:
140
145
141
146
.. code-block:: shell
142
147
0 commit comments