couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [35/37] couch-replicator commit: updated refs/heads/master to aafb5f9
Date Thu, 28 Aug 2014 12:16:06 GMT
Expose current_through_seq in task statuses

This lets clients know how far along in the source update sequence we
have processed but not necessarily committed.


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

Branch: refs/heads/master
Commit: 7ff3a52e9701ad1ef95be8791a9df32087a23777
Parents: 9640ccf
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Tue Aug 12 16:01:30 2014 -0500
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Tue Aug 12 16:01:30 2014 -0500

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


http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/7ff3a52e/src/couch_replicator.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator.erl b/src/couch_replicator.erl
index 0c06145..6bfd3bb 100644
--- a/src/couch_replicator.erl
+++ b/src/couch_replicator.erl
@@ -912,11 +912,13 @@ get_pending_count_int(#rep_state{source = Db}=St) ->
 
 update_task(State) ->
     #rep_state{
+        current_through_seq = {_, ThroughSeq},
         highest_seq_done = {_, HighestSeq}
     } = State,
     couch_task_status:update(
         rep_stats(State) ++ [
-        {source_seq, HighestSeq}
+        {source_seq, HighestSeq},
+        {through_seq, ThroughSeq}
     ]).
 
 


Mime
View raw message