25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +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,
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,