You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2016/06/07 11:05:42 UTC
[38/44] couch-replicator commit: updated refs/heads/63012-defensive
to 1afa5ea
clarify when doc processor is ignoring docs
Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/commit/e9d4db5a
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/tree/e9d4db5a
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/diff/e9d4db5a
Branch: refs/heads/63012-defensive
Commit: e9d4db5a38bd0cf3854df96a0bb597c1af84e719
Parents: ed40d85
Author: Robert Newson <rn...@apache.org>
Authored: Mon Jun 6 13:41:17 2016 +0100
Committer: Robert Newson <rn...@apache.org>
Committed: Mon Jun 6 14:05:49 2016 +0100
----------------------------------------------------------------------
src/couch_replicator_doc_processor.erl | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/e9d4db5a/src/couch_replicator_doc_processor.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator_doc_processor.erl b/src/couch_replicator_doc_processor.erl
index 0ae203c..32fbcd9 100644
--- a/src/couch_replicator_doc_processor.erl
+++ b/src/couch_replicator_doc_processor.erl
@@ -68,16 +68,14 @@ process_update(DbName, {Change}) ->
couch_replicator_docs:remove_state_fields(DbName, DocId),
maybe_start_replication(DbName, DocId, JsonRepDoc);
<<"completed">> ->
- couch_log:notice("Replication '~s' marked as completed", [DocId]);
+ couch_log:notice("Ignoring completed replication '~s'", [DocId]);
<<"error">> ->
% Handle replications started from older versions of replicator
% which wrote transient errors to replication docs
couch_replicator_docs:remove_state_fields(DbName, DocId),
maybe_start_replication(DbName, DocId, JsonRepDoc);
<<"failed">> ->
- Reason = get_json_value(<<"_replication_state_reason">>, RepProps),
- Msg = "Replication '~s' marked as failed with reason '~s'",
- couch_log:warning(Msg, [DocId, Reason])
+ couch_log:warning("Ignoring failed replication '~s'", [DocId])
end;
{Owner, false} ->
ok