提交 1ebd987a 编写于 作者: K Kasper Timm Hansen

Merge pull request #21637 from amitsuroliya/doc_fixes

Improved ActiveRecord Connection Pool docs [ci skip]
...@@ -364,7 +364,7 @@ def connection ...@@ -364,7 +364,7 @@ def connection
# Is there an open connection that is being used for the current thread? # Is there an open connection that is being used for the current thread?
# #
# This method only works for connections that have been abtained through # This method only works for connections that have been obtained through
# #connection or #with_connection methods, connections obtained through # #connection or #with_connection methods, connections obtained through
# #checkout will not be detected by #active_connection? # #checkout will not be detected by #active_connection?
def active_connection? def active_connection?
...@@ -427,7 +427,7 @@ def disconnect(raise_on_acquisition_timeout = true) ...@@ -427,7 +427,7 @@ def disconnect(raise_on_acquisition_timeout = true)
# The pool first tries to gain ownership of all connections, if unable to # The pool first tries to gain ownership of all connections, if unable to
# do so within a timeout interval (default duration is # do so within a timeout interval (default duration is
# +spec.config[:checkout_timeout] * 2+ seconds), the pool is forcefully # +spec.config[:checkout_timeout] * 2+ seconds), the pool is forcefully
# disconneted wihout any regard for other connection owning threads. # disconnected without any regard for other connection owning threads.
def disconnect! def disconnect!
disconnect(false) disconnect(false)
end end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册