25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Make any uncatched exception inside transaction trigger rollback

This commit is contained in:
Paweł Chmielowski 2024-07-16 15:26:52 +02:00
parent c5f2b389c3
commit f56739fd9f

View File

@ -620,7 +620,7 @@ outer_transaction(F, NRestarts, _Reason) ->
[?MAX_TRANSACTION_RESTARTS, Reason,
StackTrace, get(?STATE_KEY)]),
maybe_restart_transaction(F, NRestarts, Reason, true);
?EX_RULE(exit, Reason, _) ->
?EX_RULE(_, Reason, _) ->
maybe_restart_transaction(F, 0, Reason, true)
end
end.