working implementation of mnesia and ets based ezic.

This commit is contained in:
lsowen
2012-12-05 15:14:21 -05:00
parent 2866c9c505
commit e535590013
5 changed files with 55 additions and 21 deletions

View File

@@ -24,8 +24,8 @@
%% Function: start_link() -> {ok,Pid} | ignore | {error,Error}
%% Description: Starts the supervisor
%%--------------------------------------------------------------------
start_link(_) ->
supervisor:start_link(?MODULE, []).
start_link(StartArgs) ->
supervisor:start_link(?MODULE, StartArgs).
%%====================================================================
%% Supervisor callbacks
@@ -39,9 +39,9 @@ start_link(_) ->
%% to find out about restart strategy, maximum restart frequency and child
%% specifications.
%%--------------------------------------------------------------------
init(_) ->
EzicDb = {ezic_db,{ezic_db, start_link, []},
permanent,2000,worker,[ezic_db_ets]},
init(StartArgs) ->
EzicDb = {ezic_db,{ezic_db, start_link, [StartArgs]},
permanent,2000,worker,[ezic_db]},
{ok,{{one_for_all,3,30}, [EzicDb]}}.
%%====================================================================