GitHub user carlosduclos opened a pull request:
https://github.com/apache/couchdb-nano/pull/6
Adding replication using the "_replicator" database
Starting with 1.2.0 CouchDB added a new system database called
"_replicator" to handle replications jobs.
Replications are now created as entries on that database and
the server will schedule and perform the replication
accordingly. Entries in the "_replicator" db will be updated.
This means that replication now is a completely asynchronous job
that is not guaranteed to run right after the replication was started.
This commit adds three new object with three object to handle this new
type of replication:
- replication.enable: To enable the replication of a database.
- replication.query: To query the status of a replication job.
- replication.disable: To disable the replication of a database.
More information on this type of replication can be found:
- https://wiki.apache.org/couchdb/Replication#from_1.2.0_onward
- http://guide.couchdb.org/draft/replication.html
- https://gist.github.com/fdmanana/832610
[Addendum after merging with the new repo]
Fixing tests for uuids, since they were not passing.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/carlosduclos/couchdb-nano replicator
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/couchdb-nano/pull/6.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #6
----
commit 9f399fdc4ebc75a23cfa63f6a79b6c57e9b00a9e
Author: Carlos Manuel Duclos Vergara <[email protected]>
Date: 2017-02-02T13:25:50Z
Adding replication using the "_replicator" database
Starting with 1.2.0 CouchDB added a new system database called
"_replicator" to handle replications jobs.
Replications are now created as entries on that database and
the server will schedule and perform the replication
accordingly. Entries in the "_replicator" db will be updated.
This means that replication now is a completely asynchronous job
that is not guaranteed to run right after the replication was started.
This commit adds three new object with three object to handle this new
type of replication:
- replication.enable: To enable the replication of a database.
- replication.query: To query the status of a replication job.
- replication.disable: To disable the replication of a database.
More information on this type of replication can be found:
- https://wiki.apache.org/couchdb/Replication#from_1.2.0_onward
- http://guide.couchdb.org/draft/replication.html
- https://gist.github.com/fdmanana/832610
[Addendum after merging with the new repo]
Fixing tests for uuids, since they were not passing.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---