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 2014/08/28 14:15:49 UTC

[18/37] couch-replicator commit: updated refs/heads/master to aafb5f9

Remove progress field from replication tasks

The progress field doesn't make much sense in the context of a
replication. The new changes_pending field should be the correct gauge
of how far behind a replication is.

BugzId: 26015


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/353f51f5
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/tree/353f51f5
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/diff/353f51f5

Branch: refs/heads/master
Commit: 353f51f5bc48948501b42e99e712b5a48f9f8fcf
Parents: 06cf699
Author: Paul J. Davis <pa...@gmail.com>
Authored: Wed Dec 11 10:10:19 2013 -0600
Committer: Robert Newson <rn...@apache.org>
Committed: Tue Jul 29 15:17:45 2014 +0100

----------------------------------------------------------------------
 src/couch_replicator.erl | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/353f51f5/src/couch_replicator.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator.erl b/src/couch_replicator.erl
index 82c1360..006770c 100644
--- a/src/couch_replicator.erl
+++ b/src/couch_replicator.erl
@@ -287,7 +287,6 @@ do_init(#rep{options = Options, id = {BaseId, Ext}, user_ctx=UserCtx} = Rep) ->
         {doc_write_failures, 0},
         {source_seq, HighestSeq},
         {checkpointed_source_seq, CommittedSeq},
-        {progress, 0},
         {checkpoint_interval, CheckpointInterval}
     ]),
     couch_task_status:set_update_frequency(1000),
@@ -917,8 +916,7 @@ update_task(State) ->
     } = State,
     couch_task_status:update(
         rep_stats(State) ++ [
-        {source_seq, HighestSeq},
-        {progress, 0}
+        {source_seq, HighestSeq}
     ]).