mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Note that allow_concurrency = true means you need to verify_active_connections! to clear out connections assigned to stale threads.
This commit is contained in:
parent
90f6062f7d
commit
1c66ece244
1 changed files with 3 additions and 1 deletions
|
@ -423,7 +423,9 @@ module ActiveRecord #:nodoc:
|
|||
@@default_timezone = :local
|
||||
|
||||
# Determines whether to use a connection for each thread, or a single shared connection for all threads.
|
||||
# Defaults to false. Set to true if you're writing a threaded application.
|
||||
# Defaults to false. If you're writing a threaded application, set to true
|
||||
# and periodically call verify_active_connections! to clear out connections
|
||||
# assigned to stale threads.
|
||||
cattr_accessor :allow_concurrency, :instance_writer => false
|
||||
@@allow_concurrency = false
|
||||
|
||||
|
|
Loading…
Reference in a new issue