summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBrad Anderson <brad@cloudant.com>2010-06-07 16:18:44 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-12 00:58:56 -0400
commitec6a2999c98332ff90e2d0907eefc8bf5671c71d (patch)
tree75e93447bfb9371ccc76eb4f95a02bb1ba4e6b2c /src
parent58a668a67081c1c3374605fcc9d98b13680454a3 (diff)
dbs database creation moved to membership app
Diffstat (limited to 'src')
-rw-r--r--src/membership_app.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/membership_app.erl b/src/membership_app.erl
index 589a6f81..7f050fe5 100644
--- a/src/membership_app.erl
+++ b/src/membership_app.erl
@@ -10,10 +10,11 @@
%% @doc start required apps, join cluster, start supervisor
start(_Type, _StartArgs) ->
- % start dynomite supervisor
+ couch_api:create_db(<<"dbs">>, []), % all nodes have local 'dbs' db
+ % start membership supervisor
membership_sup:start_link().
stop({_, Sup}) ->
- ?LOG_ALERT("dynomite application stopped", []),
+ ?LOG_ALERT("membership application stopped", []),
exit(Sup, normal),
ok.