]> granicus.if.org Git - ejabberd/commitdiff
PubSub purge_node must use a transaction (#2231)
authorChristophe Romain <christophe.romain@process-one.net>
Tue, 24 Apr 2018 13:58:56 +0000 (15:58 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Tue, 24 Apr 2018 13:58:56 +0000 (15:58 +0200)
src/mod_pubsub.erl

index 5d02d6518db748818e994dd4dc26e5718570b57a..eac31f6166c03a57ee771b44d2b16f490a2f834f 100644 (file)
@@ -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,