summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_rep.erl
diff options
context:
space:
mode:
authorFilipe David Borba Manana <fdmanana@apache.org>2010-11-17 11:41:44 +0000
committerFilipe David Borba Manana <fdmanana@apache.org>2010-11-17 11:41:44 +0000
commite058233672db611c9046f1af69952d093db09606 (patch)
tree19ec539bdf03543e930014bbcb8995bd892afa78 /src/couchdb/couch_rep.erl
parent2fd61c4f5174e297ca09dd63f6916820328d3ebd (diff)
Replicator DB: removed some restrictions from the default document update validation function and added some logging.
1) Now it's easier to replicate to the replicator DB and by default it's writable by any user (just like any user can POST to /_replicate/); 2) The logging in the document validation function allows us to see in the log, after a replication, why a document was not written to the target replicator DB. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1035986 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_rep.erl')
-rw-r--r--src/couchdb/couch_rep.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl
index d35471c5..e288efa6 100644
--- a/src/couchdb/couch_rep.erl
+++ b/src/couchdb/couch_rep.erl
@@ -862,7 +862,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">>, <<"_replicator">>]}},
+ {user_ctx, #user_ctx{roles=[<<"_admin">>]}},
sys_db
],
case couch_db:open(DbName, Opts) of