cloudant/mem3 — pull request #26 by kocolosk (2012-04-30 17:39:10+00:00)
Title: Optimize mem3 synchronization for large partition tables (master)

Rebase of topic branch from PR #24 onto master. It got a little bit involved but didn't reach the point of manual intervention. Diff looks good to me.

```$ git rebase --onto master 1.3.x 13504-mem3-sync-large-tables
First, rewinding head to replay your work on top of it...
Applying: Fold over DBs on disk rather than load into memory
Applying: Sync "dbs" and "_users" with the next live node
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
Auto-merging src/mem3_sync.erl
Applying: Give up on mem3_rep if DB was deleted
Applying: Avoid mesh replication on add_node/nodeup events
Applying: Make initial_sync block for each replication
Using index info to reconstruct a base tree...
Falling back to patching base and 3-way merge...
Auto-merging src/mem3_sync.erl
```