25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Merge pull request #269 from Iperity/master

Fix migration of pubsub nodes. Was deleting and re-creating all nodes on...
This commit is contained in:
Evgeny Khramtsov 2014-08-15 03:20:36 +04:00
commit 1b1d9b5a73

View File

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