cluster
This commit is contained in:
parent
e5099d89eb
commit
4fb90d1e19
|
@ -68,7 +68,7 @@ cluster([SNode]) ->
|
|||
pong ->
|
||||
application:stop(emqttd),
|
||||
application:stop(esockd),
|
||||
emqtt_mnesia:cluster(Node),
|
||||
emqttd_mnesia:cluster(Node),
|
||||
application:start(esockd),
|
||||
application:start(emqttd),
|
||||
?PRINT("cluster with ~p successfully.~n", [Node]);
|
||||
|
|
|
@ -153,13 +153,13 @@ wait_for_tables() ->
|
|||
%% Simple cluster with another nodes.
|
||||
%%
|
||||
%% @end
|
||||
%%------------------------------------------------------------------------------
|
||||
%%--------------
|
||||
cluster(Node) ->
|
||||
%% stop mnesia
|
||||
mnesia:stop(),
|
||||
ok = wait_for_mnesia(stop),
|
||||
%% delete mnesia
|
||||
ok = mnesia:delete_schema(node()),
|
||||
ok = mnesia:delete_schema([node()]),
|
||||
%% start mnesia
|
||||
ok = mnesia:start(),
|
||||
%% connect with extra_db_nodes
|
||||
|
|
Loading…
Reference in New Issue