couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject svn commit: r775715 - /couchdb/trunk/src/couchdb/couch_rep.erl
Date Sun, 17 May 2009 17:05:22 GMT
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



Mime
View raw message