wohali commented on a change in pull request #123: Documentation for the
scheduling replicator
URL:
https://github.com/apache/couchdb-documentation/pull/123#discussion_r114010090
##########
File path: src/replication/replicator.rst
##########
@@ -154,98 +203,253 @@ the following order:
.. code-block:: javascript
{
- "_id": "doc_A",
- "source": "http://myserver.com:5984/foo",
- "target": "http://user:pass@localhost:5984/bar"
+ "_id": "my_rep",
+ "source": "http://user:pass@localhost:5984/foo",
+ "target": "http://user:pass@localhost:5984/bar",
+ "create_target": true,
+ "continuous": true
}
and
.. code-block:: javascript
{
- "_id": "doc_B",
- "source": "http://myserver.com:5984/foo",
- "target": "http://user:pass@localhost:5984/bar"
- }
-
-Both describe exactly the same replication (only their ``_ids`` differ). In
this
-case document ``doc_A`` triggers the replication, getting updated by CouchDB
-with the fields ``_replication_state``, ``_replication_state_time`` and
-``_replication_id``, just like it was described before. Document ``doc_B``
-however, is only updated with one field, the ``_replication_id`` so it will
-look like this:
-
-.. code-block:: javascript
-
- {
- "_id": "doc_B",
- "source": "http://myserver.com:5984/foo",
+ "_id": "my_rep_dup",
+ "source": "http://user:pass@localhost:5984/foo",
Review comment:
And here.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services