From 8208d5d1721ac693349e02311eda4cd34c155387 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 16 Feb 2015 00:03:22 +0100 Subject: [PATCH] mod_mam: Remove users in sync_transaction context --- mod_mam/src/mod_mam.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_mam/src/mod_mam.erl b/mod_mam/src/mod_mam.erl index 1594039..b390731 100644 --- a/mod_mam/src/mod_mam.erl +++ b/mod_mam/src/mod_mam.erl @@ -1245,5 +1245,5 @@ remove_user(LUser, LServer, mnesia) -> ok end end, - {atomic, ok} = mnesia:transaction(Remove), + {atomic, ok} = mnesia:sync_transaction(Remove), manage_mnesia_fragments(true).