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 @@ -126,6 +126,20 @@ Finalize Sync
126
126
To finalize the sync between the source and destination clusters,
127
127
call the :ref:`commit <c2c-api-commit>` endpoint.
128
128
129
+ .. note::
130
+
131
+ You must block writes to the source cluster before you begin the
132
+ the commit process.
133
+
134
+ If you previously set ``enableUserWriteBlocking`` to ``true`` when
135
+ you used the :ref:`start <c2c-api-start>` endpoint, ``mongosync``
136
+ automatically blocks writes on the source cluster when you use the
137
+ ``commit`` endpoint.
138
+
139
+ If you did not set ``enableUserWriteBlocking`` to ``true``, run
140
+ :dbcommand:`setUserWriteBlockMode` on the source cluster to
141
+ block writes.
142
+
129
143
The ``commit`` endpoint starts the :ref:`COMMITTING <c2c-state-committing>`
130
144
state, which is when ``mongosync`` stops continuous sync between the source and
131
145
destination clusters.
Original file line number Diff line number Diff line change @@ -34,9 +34,11 @@ General Limitations
34
34
are properly configured.
35
35
- Other clients must not write to the destination cluster while
36
36
``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.
40
42
- :ref:`system.* collections <metadata-system-collections>` aren't
41
43
replicated.
42
44
- Documents that have dollar (``$``) prefixed field names aren't
You can’t perform that action at this time.
0 commit comments