nickva opened a new pull request, #4095:
URL: https://github.com/apache/couchdb/pull/4095

   `winning_revs_only` option replicates only the winning revisions from the 
source to the target, effectively discarding conflicts.
   
   This option may be used as an alternative to the custom VDU strategy, or 
manual _all_docs read and POST to target scripts, often used by users to 
discard conflicted document revisions.
   
   Behind the scenes the implementation simply switches the `_changes` feed 
style to `main_only` from the replication default of `all_docs`.
   
   Additionally, when enabled, the `winning_revs_only` option, will generate a 
different replication ID and use a different set of checkpoints than the 
default case. This should allows first replicating with `winning_revs_only: 
true`, and then later replicate normally between the same endpoints, in order 
to "backfill" the rest of the revisions.
   
   The main test is in the couch_replicator_many_leaves since we already assert 
how multiple conflicting docs replicate there. The test was also simplified to 
remove the `{remote, remote}` tuple as we only have remote endpoints currently.
   
   Issue: https://github.com/apache/couchdb/issues/4034
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to