You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/02/04 16:49:42 UTC

[1/4] couchdb-couch-event git commit: Add vsn to implementaitions of config_listener

Repository: couchdb-couch-event
Updated Branches:
  refs/heads/master 4c1a1c5f1 -> ff2fccdf5


Add vsn to implementaitions of config_listener

COUCHDB-2561


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-event/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-event/commit/6005dc34
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-event/tree/6005dc34
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-event/diff/6005dc34

Branch: refs/heads/master
Commit: 6005dc34afef9c916d912b4e1bcd2f82aa05876f
Parents: 1c18cd7
Author: ILYA Khlopotov <ii...@ca.ibm.com>
Authored: Fri Jan 30 12:10:46 2015 -0800
Committer: ILYA Khlopotov <ii...@ca.ibm.com>
Committed: Wed Feb 4 06:06:34 2015 -0800

----------------------------------------------------------------------
 src/couch_event_os_sup.erl | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-event/blob/6005dc34/src/couch_event_os_sup.erl
----------------------------------------------------------------------
diff --git a/src/couch_event_os_sup.erl b/src/couch_event_os_sup.erl
index 6c2b787..ba38f87 100644
--- a/src/couch_event_os_sup.erl
+++ b/src/couch_event_os_sup.erl
@@ -22,6 +22,7 @@
 -behaviour(supervisor).
 -behaviour(config_listener).
 
+-vsn(1).
 
 -export([
     start_link/0,


[2/4] couchdb-couch-event git commit: Don't restart event handler on termiation

Posted by kx...@apache.org.
Don't restart event handler on termiation

COUCHDB-2561


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-event/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-event/commit/1c18cd7b
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-event/tree/1c18cd7b
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-event/diff/1c18cd7b

Branch: refs/heads/master
Commit: 1c18cd7b6bb610db98213d5427cc150be73cf2c2
Parents: 71cd331
Author: ILYA Khlopotov <ii...@ca.ibm.com>
Authored: Fri Jan 30 11:15:08 2015 -0800
Committer: ILYA Khlopotov <ii...@ca.ibm.com>
Committed: Wed Feb 4 06:06:34 2015 -0800

----------------------------------------------------------------------
 src/couch_event_os_sup.erl | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-event/blob/1c18cd7b/src/couch_event_os_sup.erl
----------------------------------------------------------------------
diff --git a/src/couch_event_os_sup.erl b/src/couch_event_os_sup.erl
index 2a1457b..6c2b787 100644
--- a/src/couch_event_os_sup.erl
+++ b/src/couch_event_os_sup.erl
@@ -60,6 +60,7 @@ handle_config_change("update_notification", Id, Exe, _, _) when is_list(Exe) ->
 handle_config_change(_, _, _, _, _) ->
     {ok, nil}.
 
+handle_config_terminate(_, stop, _) -> ok;
 handle_config_terminate(_, _, _) ->
     spawn(fun() ->
         timer:sleep(5000),


[3/4] couchdb-couch-event git commit: Update config_listener behaviuor

Posted by kx...@apache.org.
Update config_listener behaviuor

COUCHDB-2561


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-event/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-event/commit/71cd331d
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-event/tree/71cd331d
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-event/diff/71cd331d

Branch: refs/heads/master
Commit: 71cd331daf7a0568ff641a06543fa62cc4221fc4
Parents: 06477c2
Author: ILYA Khlopotov <ii...@ca.ibm.com>
Authored: Thu Jan 29 13:31:24 2015 -0800
Committer: ILYA Khlopotov <ii...@ca.ibm.com>
Committed: Wed Feb 4 06:06:34 2015 -0800

----------------------------------------------------------------------
 src/couch_event_os_sup.erl | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-event/blob/71cd331d/src/couch_event_os_sup.erl
----------------------------------------------------------------------
diff --git a/src/couch_event_os_sup.erl b/src/couch_event_os_sup.erl
index fa7e66d..2a1457b 100644
--- a/src/couch_event_os_sup.erl
+++ b/src/couch_event_os_sup.erl
@@ -29,7 +29,8 @@
 ]).
 
 -export([
-    handle_config_change/5
+    handle_config_change/5,
+    handle_config_terminate/3
 ]).
 
 
@@ -54,13 +55,17 @@ handle_config_change("update_notification", Id, deleted, _, _) ->
     supervisor:delete_child(?MODULE, Id),
     {ok, nil};
 handle_config_change("update_notification", Id, Exe, _, _) when is_list(Exe) ->
-    supervisor:terminate_child(?MODULE, Id),
-    supervisor:delete_child(?MODULE, Id),
     supervisor:start_child(?MODULE, child(Id, Exe)),
     {ok, nil};
 handle_config_change(_, _, _, _, _) ->
     {ok, nil}.
 
+handle_config_terminate(_, _, _) ->
+    spawn(fun() ->
+        timer:sleep(5000),
+        config:listen_for_changes(?MODULE, nil)
+    end),
+    ok.
 
 child(Id, Arg) ->
     {


[4/4] couchdb-couch-event git commit: Merge remote-tracking branch 'iilyak/2561-make-config-API-consistent'

Posted by kx...@apache.org.
Merge remote-tracking branch 'iilyak/2561-make-config-API-consistent'

This closes #1

COUCHDB-2561


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

Branch: refs/heads/master
Commit: ff2fccdf584d057bb2963b02cc15209fd8c2fd61
Parents: 4c1a1c5 6005dc3
Author: Alexander Shorin <kx...@apache.org>
Authored: Wed Feb 4 18:43:22 2015 +0300
Committer: Alexander Shorin <kx...@apache.org>
Committed: Wed Feb 4 18:43:22 2015 +0300

----------------------------------------------------------------------
 src/couch_event_os_sup.erl | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
----------------------------------------------------------------------