You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/02/06 17:54:40 UTC

[21/22] couch-mrview commit: updated refs/heads/import-rcouch to 7258945

make couch_httpd a full couch application

With this change, the HTTP API is now handled by its own erlang
application and supervision. It also improved the way you can reload the
configuration and the modules. Now upgrading a listener or its
configuration is first removing it from the supervsion then start the
new process with the new configuration. This behaviour is similar to the
one you have in nginx.


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

Branch: refs/heads/import-rcouch
Commit: 5813a97aafe9d1055934ad983bd064b81f714800
Parents: bce80b4
Author: benoitc <be...@apache.org>
Authored: Sat Jan 11 11:20:27 2014 +0100
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Thu Feb 6 10:51:40 2014 -0600

----------------------------------------------------------------------
 test/02-map-views.t    | 1 +
 test/03-red-views.t    | 2 +-
 test/04-index-info.t   | 1 +
 test/05-collation.t    | 1 +
 test/06-all-docs.t     | 1 +
 test/07-compact-swap.t | 1 +
 6 files changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/5813a97a/test/02-map-views.t
----------------------------------------------------------------------
diff --git a/test/02-map-views.t b/test/02-map-views.t
index 567042d..98d6a8f 100644
--- a/test/02-map-views.t
+++ b/test/02-map-views.t
@@ -30,6 +30,7 @@ main(_) ->
 
 test() ->
     couch_server_sup:start_link(test_util:config_files()),
+    couch_httpd_sup:start_link(),
     {ok, Db} = couch_mrview_test_util:init_db(<<"foo">>, map),
 
     test_basic(Db),

http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/5813a97a/test/03-red-views.t
----------------------------------------------------------------------
diff --git a/test/03-red-views.t b/test/03-red-views.t
index 7f52f75..e478521 100644
--- a/test/03-red-views.t
+++ b/test/03-red-views.t
@@ -20,7 +20,7 @@ main(_) ->
 
 test() ->
     couch_server_sup:start_link(test_util:config_files()),
-
+    couch_httpd_sup:start_link(),
     {ok, Db} = couch_mrview_test_util:init_db(<<"foo">>, red),
 
     test_basic(Db),

http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/5813a97a/test/04-index-info.t
----------------------------------------------------------------------
diff --git a/test/04-index-info.t b/test/04-index-info.t
index 834b7d2..3f47436 100644
--- a/test/04-index-info.t
+++ b/test/04-index-info.t
@@ -32,6 +32,7 @@ sig() -> <<"276df562b152b3c4e5d34024f62672ed">>.
 
 test() ->
     couch_server_sup:start_link(test_util:config_files()),
+    couch_httpd_sup:start_link(),
 
     {ok, Db} = couch_mrview_test_util:init_db(<<"foo">>, map),
     couch_mrview:query_view(Db, <<"_design/bar">>, <<"baz">>),

http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/5813a97a/test/05-collation.t
----------------------------------------------------------------------
diff --git a/test/05-collation.t b/test/05-collation.t
index f98e88d..f0c4f0d 100644
--- a/test/05-collation.t
+++ b/test/05-collation.t
@@ -20,6 +20,7 @@ main(_) ->
 
 test() ->
     couch_server_sup:start_link(test_util:config_files()),
+    couch_httpd_sup:start_link(),
 
     {ok, Db0} = couch_mrview_test_util:new_db(<<"foo">>, map),
     {ok, Db1} = couch_mrview_test_util:save_docs(Db0, docs()),

http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/5813a97a/test/06-all-docs.t
----------------------------------------------------------------------
diff --git a/test/06-all-docs.t b/test/06-all-docs.t
index 370825e..3a08b59 100644
--- a/test/06-all-docs.t
+++ b/test/06-all-docs.t
@@ -20,6 +20,7 @@ main(_) ->
 
 test() ->
     couch_server_sup:start_link(test_util:config_files()),
+    couch_httpd_sup:start_link(),
 
     {ok, Db} = couch_mrview_test_util:init_db(<<"foo">>, map),
 

http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/blob/5813a97a/test/07-compact-swap.t
----------------------------------------------------------------------
diff --git a/test/07-compact-swap.t b/test/07-compact-swap.t
index f7ebca2..9185a19 100644
--- a/test/07-compact-swap.t
+++ b/test/07-compact-swap.t
@@ -21,6 +21,7 @@ main(_) ->
 
 test() ->
     couch_server_sup:start_link(test_util:config_files()),
+    couch_httpd_sup:start_link(),
 
     {ok, Db} = couch_mrview_test_util:init_db(<<"foo">>, map, 1000),
     couch_mrview:query_view(Db, <<"_design/bar">>, <<"baz">>),