提交 33fdb7f2 编写于 作者: Y Yoshioka Tsuneo

ActiveRecord: On reconnection failure, release only failed connetion.

On reconnection failure, all the connection was released.
But, it is better to release only failed connection.
This patch changes not to release all the connection but release
only failed connection.
上级 205a561e
......@@ -454,7 +454,8 @@ def checkout_and_verify(c)
end
c
rescue
disconnect!
remove c
c.disconnect!
raise
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册