summaryrefslogtreecommitdiff
path: root/src/membership_sup.erl
diff options
context:
space:
mode:
authorBrad Anderson <brad@cloudant.com>2010-06-15 10:23:38 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-12 01:06:40 -0400
commit86720c8aad8d8329e8c029a0f9c5fa90d9e04adf (patch)
tree2238ad339bd09670fdb8d4a55b452ad7857751ec /src/membership_sup.erl
parent8759d8d56b4214cb209563dabbfeb298e0afd21d (diff)
add membership events back into mem3, and add dbs handlers
Diffstat (limited to 'src/membership_sup.erl')
-rw-r--r--src/membership_sup.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/membership_sup.erl b/src/membership_sup.erl
index 27e547ff..f203924d 100644
--- a/src/membership_sup.erl
+++ b/src/membership_sup.erl
@@ -21,6 +21,12 @@ init(_Args) ->
1000,
worker,
[mem3]},
+ MemEventMgr = {mem_event_manager,
+ {gen_event, start_link, [{local, membership_events}]},
+ permanent,
+ 1000,
+ worker,
+ []},
DbsRepl =
{dbs,
{dbs, start_link, []},
@@ -35,4 +41,4 @@ init(_Args) ->
1000,
worker,
[dbs_cache]},
- {ok, {{one_for_one,10,1}, [Membership, DbsRepl, DbsCache]}}.
+ {ok, {{one_for_one,10,1}, [Membership, MemEventMgr, DbsRepl, DbsCache]}}.