Skip to content
代码片段 群组 项目
提交 71d8ce9c 编辑于 作者: Thong Kuah's avatar Thong Kuah
浏览文件

Disallow any database calls, or connections in routes

This helps prevents database connections not dropped because connections
are held open. See also https://github.com/rails/rails/issues/44875

We achieve this by swapping out with an empty ConnectionHandler within
the block.

We also have add a SKIP_RAISE_ON_INTIALIZE_CONNECTIONS in case there is
any unforeseen issues. User can use this to skip this if we encounter
any bugs.

Also, raise if new connection pools established within block

Changelog: other
上级 61b21412
No related branches found
No related tags found
加载中
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册