You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2009/03/16 23:04:08 UTC

svn commit: r755016 - /couchdb/trunk/src/couchdb/couch_rep.erl

Author: damien
Date: Mon Mar 16 22:04:08 2009
New Revision: 755016

URL: http://svn.apache.org/viewvc?rev=755016&view=rev
Log:
Adding the necessary done=true to the last race condition fix in the replicator. Thanks Adam.

Modified:
    couchdb/trunk/src/couchdb/couch_rep.erl

Modified: couchdb/trunk/src/couchdb/couch_rep.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_rep.erl?rev=755016&r1=755015&r2=755016&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_rep.erl (original)
+++ couchdb/trunk/src/couchdb/couch_rep.erl Mon Mar 16 22:04:08 2009
@@ -223,7 +223,7 @@
     case State#state.listeners of
     [] ->
         % still waiting for the first listener to sen a request
-        {noreply, State#state{current_seq=LastSeq}};
+        {noreply, State#state{current_seq=LastSeq,done=true}};
     _ ->
         {stop, normal, ok, State#state{current_seq=LastSeq}}
     end.