1
0
mirror of https://github.com/UzixLS/migresia.git synced 2025-07-19 07:11:28 +03:00

Read mnesia nodes from the mnesia schema

This commit is contained in:
Grzegorz Junka
2013-05-22 20:23:38 +00:00
parent e1da643223
commit ae060539f9

View File

@ -21,10 +21,4 @@ execute_up({Module, Short}) ->
io:format(" => done~n", []). io:format(" => done~n", []).
list_nodes() -> list_nodes() ->
Node = node(), mnesia:table_info(schema, disc_copies).
if Node == nonode@nohost ->
io:format("Warning: Erlang doesn't seem to be running in distributed mode.~n", []);
true ->
ok
end,
[Node].