From: Christophe Romain Date: Tue, 24 Apr 2018 13:58:56 +0000 (+0200) Subject: PubSub purge_node must use a transaction (#2231) X-Git-Tag: 18.04~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3df919244c97cd3b74dbd1264539a7b8d4b4db85;p=ejabberd PubSub purge_node must use a transaction (#2231) --- diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl index 5d02d6518..eac31f616 100644 --- a/src/mod_pubsub.erl +++ b/src/mod_pubsub.erl @@ -1954,7 +1954,7 @@ purge_node(Host, Node, Owner) -> end end, Reply = undefined, - case transaction(Host, Node, Action, sync_dirty) of + case transaction(Host, Node, Action, transaction) of {result, {TNode, {Result, broadcast}}} -> Nidx = TNode#pubsub_node.id, Type = TNode#pubsub_node.type,