couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [05/50] fabric commit: updated refs/heads/windsor-merge-121 to 79e6e2f
Date Fri, 01 Aug 2014 09:11:53 GMT
Monitor coordinator pids for update notifiers

We were leaking fabric_db_update_listener rexi workers. This uses the
new couch_event configurability to have the workers automatically exit
when the coordinator dies.


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

Branch: refs/heads/windsor-merge-121
Commit: 61209201e3210927a7bac85348062b3c8908ccea
Parents: 400bce8
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Thu Aug 8 12:19:32 2013 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Thu Jul 31 10:51:27 2014 +0100

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


http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/61209201/src/fabric_db_update_listener.erl
----------------------------------------------------------------------
diff --git a/src/fabric_db_update_listener.erl b/src/fabric_db_update_listener.erl
index f3f8a53..9a0f2c6 100644
--- a/src/fabric_db_update_listener.erl
+++ b/src/fabric_db_update_listener.erl
@@ -70,7 +70,7 @@ start_update_notifier(DbNames) ->
     {Caller, Ref} = get(rexi_from),
     Notify = config:get("cloudant", "maintenance_mode", "false") /= "true",
     State = #cb_state{client_pid = Caller, client_ref = Ref, notify = Notify},
-    Options = [{dbnames, DbNames}],
+    Options = [{parent, Caller}, {dbnames, DbNames}],
     couch_event:listen(?MODULE, handle_db_event, State, Options).
 
 handle_db_event(_DbName, updated, #cb_state{notify = true} = St) ->


Mime
View raw message