couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [35/50] fabric commit: updated refs/heads/master to a71701c
Date Thu, 28 Aug 2014 12:21:10 GMT
Fix fabric_db_update_listener code upgrades

Changes procesess waiting idle for db update messages will never upgrade
their code. This just adds a timeout before recursing through the module
exports table to load new code.

BugzId: 27660


Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/63ec0f91
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/63ec0f91
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/63ec0f91

Branch: refs/heads/master
Commit: 63ec0f91a1d5069c255aeeda0e2efbb251bc59e3
Parents: 74e4a79
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Thu Jan 30 18:40:04 2014 -0600
Committer: Robert Newson <rnewson@apache.org>
Committed: Fri Aug 1 15:33:43 2014 +0100

----------------------------------------------------------------------
 src/fabric_db_update_listener.erl | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/63ec0f91/src/fabric_db_update_listener.erl
----------------------------------------------------------------------
diff --git a/src/fabric_db_update_listener.erl b/src/fabric_db_update_listener.erl
index 9a0f2c6..ab69491 100644
--- a/src/fabric_db_update_listener.erl
+++ b/src/fabric_db_update_listener.erl
@@ -115,6 +115,8 @@ wait_db_updated({Pid, Ref}) ->
             State;
         {'DOWN', MonRef, process, Pid, Reason} ->
             throw({changes_feed_died, Reason})
+    after 300000 ->
+        ?MODULE:wait_db_updated({Pid, Ref})
     end.
 
 receive_results(Workers, Acc0, Timeout) ->


Mime
View raw message