diff options
author | Filipe David Borba Manana <fdmanana@apache.org> | 2010-11-23 11:35:39 +0000 |
---|---|---|
committer | Filipe David Borba Manana <fdmanana@apache.org> | 2010-11-23 11:35:39 +0000 |
commit | 1b07ac052dd87d5dd255ebc328e9b8e66fac21c5 (patch) | |
tree | e9f344beb644cacb07ab9c678b10498b4e7dcafb /src/couchdb/couch_rep.erl | |
parent | edb080af8286e89c9154a077cda678ba26ab1bc0 (diff) |
Merged revision 1038067 from trunk:
Replicator DB changes:
- Added back the restriction that only the replicator can edit replication documents - this avoids
lots of potential race conditions and confusion;
- Added more tests;
- More accurate log messages;
- Don't ignore always replication documents already tagged with a replication_id property - this
is necessary when replicating a replicator DB from one server to another server.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1038068 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_rep.erl')
-rw-r--r-- | src/couchdb/couch_rep.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl index b5918abc..8eaa99ee 100644 --- a/src/couchdb/couch_rep.erl +++ b/src/couchdb/couch_rep.erl @@ -882,7 +882,7 @@ maybe_set_triggered({RepProps} = RepDoc, RepId) -> ensure_rep_db_exists() -> DbName = ?l2b(couch_config:get("replicator", "db", "_replicator")), Opts = [ - {user_ctx, #user_ctx{roles=[<<"_admin">>]}}, + {user_ctx, #user_ctx{roles=[<<"_admin">>, <<"_replicator">>]}}, sys_db ], case couch_db:open(DbName, Opts) of |