You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Nikolai Teofilov <n....@gmail.com> on 2010/03/16 00:13:57 UTC
Partial replication bug
Just notice a problem with the API for the replication by doc_ids:
curl -X PUT http://192.168.10.239:5984/test
curl -X PUT http://192.168.10.239/test/doc1 -d '{}'
curl -X PUT http://192.168.10.239/test/doc2 -d '{}'
curl -X PUT http://192.168.10.239/test/doc3 -d '{}'
curl -X PUT http://192.168.10.239/test-replica
curl -X POST http://127.0.0.1:5984/_replicate -d '{"source":"test","target":"test-replica", "doc_ids": ["doc1", "doc2", "doc3"]}'
replicate all documents. three documents.
curl -X DELETE http://127.0.0.1:5984/test-replica
create again the database:
curl -X PUT http://127.0.0.1:5984/test-replica
replicate just two of the documents:
curl -X POST http://127.0.0.1:5984/_replicate -d '{"source":"test","target":"test-replica", "doc_ids": ["doc1", "doc2"]}'
will still replicate the all three documents.
Re: Partial replication bug
Posted by Tim Smith <ti...@couch.io>.
Nikolai,
On Mon, Mar 15, 2010 at 5:13 PM, Nikolai Teofilov <n....@gmail.com> wrote:
> replicate just two of the documents:
>
> curl -X POST http://127.0.0.1:5984/_replicate -d '{"source":"test","target":"test-replica", "doc_ids": ["doc1", "doc2"]}'
>
> will still replicate the all three documents.
Thank you for already filing this as a bug in JIRA!
Tim
--
If you're not part of the solution, you're part of the precipitate