mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Whitespace change
This commit is contained in:
parent
8c56fbc0d8
commit
30e729a150
@ -799,31 +799,31 @@ mnesia_change_nodename(FromString, ToString, Source, Target) ->
|
|||||||
end,
|
end,
|
||||||
Convert =
|
Convert =
|
||||||
fun
|
fun
|
||||||
({schema, db_nodes, Nodes}, Acc) ->
|
({schema, db_nodes, Nodes}, Acc) ->
|
||||||
io:format(" +++ db_nodes ~p~n", [Nodes]),
|
io:format(" +++ db_nodes ~p~n", [Nodes]),
|
||||||
{[{schema, db_nodes, lists:map(Switch,Nodes)}], Acc};
|
{[{schema, db_nodes, lists:map(Switch,Nodes)}], Acc};
|
||||||
({schema, version, Version}, Acc) ->
|
({schema, version, Version}, Acc) ->
|
||||||
io:format(" +++ version: ~p~n", [Version]),
|
io:format(" +++ version: ~p~n", [Version]),
|
||||||
{[{schema, version, Version}], Acc};
|
{[{schema, version, Version}], Acc};
|
||||||
({schema, cookie, Cookie}, Acc) ->
|
({schema, cookie, Cookie}, Acc) ->
|
||||||
io:format(" +++ cookie: ~p~n", [Cookie]),
|
io:format(" +++ cookie: ~p~n", [Cookie]),
|
||||||
{[{schema, cookie, Cookie}], Acc};
|
{[{schema, cookie, Cookie}], Acc};
|
||||||
({schema, Tab, CreateList}, Acc) ->
|
({schema, Tab, CreateList}, Acc) ->
|
||||||
io:format("~n * Checking table: '~p'~n", [Tab]),
|
io:format("~n * Checking table: '~p'~n", [Tab]),
|
||||||
Keys = [ram_copies, disc_copies, disc_only_copies],
|
Keys = [ram_copies, disc_copies, disc_only_copies],
|
||||||
OptSwitch =
|
OptSwitch =
|
||||||
fun({Key, Val}) ->
|
fun({Key, Val}) ->
|
||||||
case lists:member(Key, Keys) of
|
case lists:member(Key, Keys) of
|
||||||
true ->
|
true ->
|
||||||
io:format(" + Checking key: '~p'~n", [Key]),
|
io:format(" + Checking key: '~p'~n", [Key]),
|
||||||
{Key, lists:map(Switch, Val)};
|
{Key, lists:map(Switch, Val)};
|
||||||
false-> {Key, Val}
|
false-> {Key, Val}
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
Res = {[{schema, Tab, lists:map(OptSwitch, CreateList)}], Acc},
|
Res = {[{schema, Tab, lists:map(OptSwitch, CreateList)}], Acc},
|
||||||
Res;
|
Res;
|
||||||
(Other, Acc) ->
|
(Other, Acc) ->
|
||||||
{[Other], Acc}
|
{[Other], Acc}
|
||||||
end,
|
end,
|
||||||
mnesia:traverse_backup(Source, Target, Convert, switched).
|
mnesia:traverse_backup(Source, Target, Convert, switched).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user