couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r989242 - /couchdb/branches/new_replicator/src/couchdb/couch_replicate.erl
Date Wed, 25 Aug 2010 17:33:43 GMT
Author: fdmanana
Date: Wed Aug 25 17:33:43 2010
New Revision: 989242

URL: http://svn.apache.org/viewvc?rev=989242&view=rev
Log:
Use previously matched record element instead of fully referencing it again.

Modified:
    couchdb/branches/new_replicator/src/couchdb/couch_replicate.erl

Modified: couchdb/branches/new_replicator/src/couchdb/couch_replicate.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/new_replicator/src/couchdb/couch_replicate.erl?rev=989242&r1=989241&r2=989242&view=diff
==============================================================================
--- couchdb/branches/new_replicator/src/couchdb/couch_replicate.erl (original)
+++ couchdb/branches/new_replicator/src/couchdb/couch_replicate.erl Wed Aug 25 17:33:43 2010
@@ -231,7 +231,7 @@ handle_info({seq_start, {Seq, NumChanges
 handle_info({seq_changes_done, {Seq, NumChangesDone}}, State) ->
     #rep_state{seqs_in_progress = SeqsInProgress} = State,
     % Decrement the # changes for this seq by NumChangesDone.
-    TotalChanges = gb_trees:get(Seq, State#rep_state.seqs_in_progress),
+    TotalChanges = gb_trees:get(Seq, SeqsInProgress),
     NewState = case TotalChanges - NumChangesDone of
     0 ->
         % This seq is completely processed. Check to see if it was the



Mime
View raw message