diff options
| author | Nathan Bruning <nathan.bruning@iperity.com> | 2014-08-03 21:03:16 +0200 |
|---|---|---|
| committer | Nathan Bruning <nathan.bruning@iperity.com> | 2014-08-03 21:03:16 +0200 |
| commit | 4f63cb21c26e956b0f65e112357c15cadd1a3ed4 (patch) | |
| tree | 4732d88659f7a6bd7a645c33f5a4c1026d04077a /src/mod_pubsub.erl | |
| parent | Merge pull request #267 from weiss/replace-echo-calls (diff) | |
Fix migration of pubsub nodes. Was deleting and re-creating all nodes on each startup.
Diffstat (limited to 'src/mod_pubsub.erl')
| -rw-r--r-- | src/mod_pubsub.erl | 4 |
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, |
