couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [20/23] fabric commit: updated refs/heads/windsor-merge to 4ec3f11
Date Fri, 01 Aug 2014 14:30:00 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/11f4d864
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/11f4d864
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/diff/11f4d864

Branch: refs/heads/windsor-merge
Commit: 11f4d864758c9ae53bafd72fdbf9d9e1931451c7
Parents: 3f7dca3
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:25:52 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/11f4d864/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