提交 68198c3e 编写于 作者: Y Yuri Smirnov

fix transaction rollback in case of aborting thread

上级 f499ecf9
......@@ -185,7 +185,7 @@ def within_new_transaction(options = {})
ensure
unless error
if Thread.current.status == 'aborting'
rollback_transaction
rollback_transaction if transaction
else
begin
commit_transaction
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册