Fix migration of pubsub nodes. Was deleting and re-creating all nodes on each startup.

This commit is contained in:
Nathan Bruning 2014-08-03 21:03:16 +02:00
parent 2e70c59471
commit 4f63cb21c2
1 changed files with 2 additions and 2 deletions

View File

@ -690,9 +690,9 @@ update_node_database(Host, ServerHost) ->
end,
mnesia:transaction(fun () ->
case catch mnesia:first(pubsub_node) of
{_, L} when is_binary(L) ->
{_, L} when is_list(L) ->
lists:foreach(fun ({H, N})
when is_binary(N) ->
when is_list(N) ->
[Node] =
mnesia:read({pubsub_node,
{H,