You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2014/08/01 16:35:08 UTC

[47/49] fabric commit: updated refs/heads/windsor-merge to b1c0030

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/windsor-merge
Commit: 63ec0f91a1d5069c255aeeda0e2efbb251bc59e3
Parents: 74e4a79
Author: Paul J. Davis <pa...@gmail.com>
Authored: Thu Jan 30 18:40:04 2014 -0600
Committer: Robert Newson <rn...@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) ->