25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

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

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,