You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2009/05/17 19:05:22 UTC

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

Author: kocolosk
Date: Sun May 17 17:05:21 2009
New Revision: 775715

URL: http://svn.apache.org/viewvc?rev=775715&view=rev
Log:
one more hanging receive loop fix

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=775715&r1=775714&r2=775715&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_rep.erl (original)
+++ couchdb/trunk/src/couchdb/couch_rep.erl Sun May 17 17:05:21 2009
@@ -527,7 +527,13 @@
         % commit tgt sync
         {ok, TgtInstanceStartTime2} = ensure_full_commit(Target),
         
-        receive {SrcCommitPid, {ok, SrcInstanceStartTime2}} -> ok end,
+        SrcInstanceStartTime2 =
+        receive
+        {SrcCommitPid, {ok, Timestamp}} ->
+            Timestamp;
+        {'EXIT', SrcCommitPid, {http_request_failed, _}} ->
+            exit(replication_link_failure)
+        end,
         
         RecordSeqNum =
         if SrcInstanceStartTime2 == SrcInstanceStartTime andalso