25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-30 16:36:29 +01:00

PubSub purge_node must use a transaction (#2231)

This commit is contained in:
Christophe Romain 2018-04-24 15:58:56 +02:00
parent 67773c5174
commit 3df919244c

View File

@ -1954,7 +1954,7 @@ purge_node(Host, Node, Owner) ->
end end
end, end,
Reply = undefined, Reply = undefined,
case transaction(Host, Node, Action, sync_dirty) of case transaction(Host, Node, Action, transaction) of
{result, {TNode, {Result, broadcast}}} -> {result, {TNode, {Result, broadcast}}} ->
Nidx = TNode#pubsub_node.id, Nidx = TNode#pubsub_node.id,
Type = TNode#pubsub_node.type, Type = TNode#pubsub_node.type,