Improve internal replicator configuration
authorPaul J. Davis <paul.joseph.davis@gmail.com>
Sun, 29 Apr 2012 17:07:52 +0000 (12:07 -0500)
committerPaul J. Davis <paul.joseph.davis@gmail.com>
Mon, 7 May 2012 16:20:19 +0000 (11:20 -0500)
commit25b40045cbeb0a900dc84c3772e7c06d87834e9e
tree5ec4efad7cb2ab34ba12f128d3468f850c0f93ac
parent8fd0135dc93247f22fbb49dcf714e12849e745e8
Improve internal replicator configuration

This work is needed to support the internal replication requirements for
cluster elasticity. This adds three new options:

  * batch_size - The number of revisions to replicate in a single batch
  * batch_count - The number of batches to replicate. The special value
    `all` means to replicate until finished.
  * filter - A 1-arity function that takes a #full_doc_info{} record and
    returns `keep` or `discard` that determines if that doc should be
    included in the replication.
src/mem3_rep.erl
src/mem3_sync.erl