From: Christophe Romain Date: Wed, 2 Apr 2008 12:18:22 +0000 (+0000) Subject: clone iq_response table bugfix X-Git-Tag: v2.0.1~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd26cb4ad6a456e85ff105b1fe3cc6a77e3d5936;p=ejabberd clone iq_response table bugfix SVN Revision: 1270 --- diff --git a/ChangeLog b/ChangeLog index 9199c4dc1..68172c88c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,9 @@ * src/mod_pubsub/mod_pubsub.erl: add condition inclusion of pep in disco identity (EJAB-564) + * src/ejabberd_local.erl: The iq_response table wasn't cloned + automatically on all nodes which resulted in a single point of + failure (backport from trunk, thanks to Alexey) 2008-03-31 Badlop diff --git a/src/ejabberd_local.erl b/src/ejabberd_local.erl index 50e62ba55..b54173581 100644 --- a/src/ejabberd_local.erl +++ b/src/ejabberd_local.erl @@ -171,6 +171,7 @@ init([]) -> mnesia:create_table(iq_response, [{ram_copies, [node()]}, {attributes, record_info(fields, iq_response)}]), + mnesia:add_table_copy(iq_response, node(), ram_copies), {ok, #state{}}. %%--------------------------------------------------------------------