Make sure mem3_rep autocreates target shards 21/head
authorPaul J. Davis <paul.joseph.davis@gmail.com>
Thu, 8 Jan 2015 19:08:03 +0000 (13:08 -0600)
committerILYA Khlopotov <iilyak@ca.ibm.com>
Wed, 18 May 2016 14:50:46 +0000 (07:50 -0700)
commit94ebe26b12374552bcd6b4b7b493bf66c8053d22
tree805597a5f2fbe05f241e6c180635fa3c6175c31d
parent861427999a45f34040f13525bd7b2db75c863b26
Make sure mem3_rep autocreates target shards

The change to our fancier history entries introduced a regression that
internal replication wouldn't automatically create the target shards.
This fixes the issue by adding a get_or_create_db/2 in mem3_rep and
switches the use of couch_db:open_int/2 to that function.
src/mem3_rpc.erl