aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Khramtsov <xramtsov@gmail.com>2014-08-15 03:20:36 +0400
committerEvgeny Khramtsov <xramtsov@gmail.com>2014-08-15 03:20:36 +0400
commit1b1d9b5a730866a143fc3484c619492daa35f92a (patch)
tree745a85c3f55771e15cec69f893ccab7cf82b8e0b
parentMerge pull request #268 from benlangfeld/fix/ldap_filter_dnattributes_new_eja... (diff)
parentFix migration of pubsub nodes. Was deleting and re-creating all nodes on each... (diff)
Merge pull request #269 from Iperity/master
Fix migration of pubsub nodes. Was deleting and re-creating all nodes on...
-rw-r--r--src/mod_pubsub.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl
index 3dbbabe9f..91b5afead 100644
--- a/src/mod_pubsub.erl
+++ b/src/mod_pubsub.erl
@@ -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,