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:
commit
1b1d9b5a73
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user