File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,20 @@ Finalize Sync
124124To finalize the sync between the source and destination clusters,
125125call the :ref:`commit <c2c-api-commit>` endpoint.
126126
127+ .. note::
128+
129+ You must block writes to the source cluster before you begin the
130+ the commit process.
131+
132+ If you previously set ``enableUserWriteBlocking`` to ``true`` when
133+ you used the :ref:`start <c2c-api-start>` endpoint, ``mongosync``
134+ automatically blocks writes on the source cluster when you use the
135+ ``commit`` endpoint.
136+
137+ If you did not set ``enableUserWriteBlocking`` to ``true``, run
138+ :dbcommand:`setUserWriteBlockMode` on the source cluster to
139+ block writes.
140+
127141The ``commit`` endpoint starts the :ref:`COMMITTING <c2c-state-committing>`
128142state, which is when ``mongosync`` stops continuous sync between the source and
129143destination clusters.
Original file line number Diff line number Diff line change @@ -34,9 +34,11 @@ General Limitations
3434 are properly configured.
3535- Other clients must not write to the destination cluster while
3636 ``mongosync`` is running.
37- - If write blocking is disabled, the client must :ref:`prevent writes
38- <c2c-api-start>` to the source cluster before starting the commit
39- process.
37+ - If you want to start the :ref:`commit <c2c-api-commit>`
38+ process and you did not set ``enableUserWriteBlocking`` to ``true``
39+ when you used the :ref:`c2c-api-start` endpoint, you
40+ must :ref:`prevent writes <c2c-api-start>` to the source cluster
41+ before you start the commit process.
4042- :ref:`system.* collections <metadata-system-collections>` aren't
4143 replicated.
4244- Documents that have dollar (``$``) prefixed field names aren't
You can’t perform that action at this time.
0 commit comments