summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Smith (work) <jason.h.smith@gmail.com>2013-08-19 13:07:23 +0000
committerJan Lehnardt <jan@apache.org>2013-10-03 16:08:37 +0200
commit9504301d851acf963472d9d2c46d179d571ca22d (patch)
tree85494085d2e52ac961dc285370d07ba8fd6aba80
parentb53942628391c7b6341a244aa6ac2ec6aa076690 (diff)
downloadcouchdb-9504301d851acf963472d9d2c46d179d571ca22d.tar.gz
A handler for 'couch_plugin' events'
-rw-r--r--src/couchdb/couch_secondary_sup.erl9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/couchdb/couch_secondary_sup.erl b/src/couchdb/couch_secondary_sup.erl
index 6320fd923..6dd5604e3 100644
--- a/src/couchdb/couch_secondary_sup.erl
+++ b/src/couchdb/couch_secondary_sup.erl
@@ -24,7 +24,14 @@ init([]) ->
permanent,
infinity,
supervisor,
- [couch_db_update_notifier_sup]}
+ [couch_db_update_notifier_sup]},
+
+ {couch_plugin_event,
+ {gen_event, start_link, [{local, couch_plugin}]},
+ permanent,
+ brutal_kill,
+ worker,
+ dynamic}
],
Children = SecondarySupervisors ++ [
begin