aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
Commit message (Collapse)AuthorAgeFilesLines
* removing useless ternaryAaron Patterson2010-08-191-1/+1
|
* refactor if / else to ||=Aaron Patterson2010-08-181-5/+1
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-1/+1
| | | | 's/[ \t]*$//' -i {} \;)
* reduce the number of times current_connection_id is called in with_connection()Aaron Patterson2010-08-061-4/+5
|
* unfactoring clear_stale_cached_connections!Aaron Patterson2010-07-161-16/+7
|
* only test for existence of +pool+ onceAaron Patterson2010-07-161-2/+4
|
* use an attr_reader for performanceAaron Patterson2010-07-161-4/+2
|
* Fix connection reloading in development mode. [#4929 state:resolved]Edgars Beigarts2010-06-221-1/+3
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* edit pass: the names of Rails components have a space, ie, "Active Record", ↵Xavier Noria2010-06-141-6/+6
| | | | not "ActiveRecord"
* Whoops. _run_*_callbacks is privatewycats2010-06-041-1/+1
|
* Use faster form of running callbackswycats2010-06-041-1/+1
|
* Expose connections available in the connection pool.José Valim2010-01-111-1/+1
|
* Modify connection pool callbacks to be compatible w/ new styleNick Sieger2009-10-161-6/+8
| | | | Signed-off-by: Yehuda Katz <wycats@gmail.com>
* Merge docrailsPratik Naik2009-07-251-1/+1
|
* Cherry-pick core extensionsJeremy Kemper2009-05-131-0/+1
|
* Ensure ActiveRecord::Base.connection_pool.with_connection creates a new ↵steve2009-05-011-5/+6
| | | | | | connection only when needed [#1752 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure ActiveRecord session store's connections are checked in after each ↵Joshua Peek2009-02-241-0/+16
| | | | request [#1927 state:resolved]
* Timeout the connection pool monitor on ruby 1.8 onlyJeremy Kemper2008-11-081-3/+11
|
* Simplify dispatcher callbacks to eliminate unnecessary stale thread purging. ↵Nick Sieger2008-11-081-4/+1
| | | | | | [Nick Sieger, Pratik Naik] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Make sure ActiveRecord::Base.connected? doesn't raise an exception for ↵Pratik Naik2008-11-061-1/+2
| | | | defined connections
* Ensure ActiveRecord::ConnectionPool.connected? handles undefined ↵Wes Oldenbeuving2008-11-061-1/+1
| | | | | | connections. [#936 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Merge docrailsPratik Naik2008-10-051-3/+71
|
* made ConnectionPool#checkout more robust by trying to loot dead threads when ↵Aliaksey Kandratsenka2008-10-041-1/+5
| | | | | | | | pool is empty Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1169 state:committed]
* Fix race in ConnectionPool#checkoutAliaksey Kandratsenka2008-10-041-15/+14
| | | | | | | After releasing monitor some connection(s) may appear in pool before monitor is re-aquired. When this happens we'll wait for connection which is already available. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Handle connection timeouts with a slightly nicer error message.Michael Koziarski2008-09-041-1/+1
|
* Default connection allow_concurrency to false (for PostgreSQL)Nick Sieger2008-09-041-2/+1
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Deprecate verification_timeout and verify before resetNick Sieger2008-09-041-4/+2
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Minor tweak to retrieve_connection_pool -- recurse instead of loopNick Sieger2008-08-291-6/+4
|
* Remove some synchronization that's probably overkill, assuming one doesn't ↵Nick Sieger2008-08-291-10/+1
| | | | establish connections frequently
* Collapse connection pool class hierarchy; YAGNI.Nick Sieger2008-08-291-112/+48
| | | | | - Add connection checkin and checkout callbacks to adapter to allow adapter-specific customization of behavior (e.g., JRuby w/ JNDI)
* Make clear_active_connections! also return stale connections back to the poolNick Sieger2008-08-291-30/+23
| | | | - also clean up some cruft remaining from per-thread connection cache
* Remove CachedConnectionPerThread per-thread pooling mechanism in favor of a ↵Nick Sieger2008-08-291-17/+4
| | | | fixed pool with default maximum of 5 connections
* Deprecate allow_concurrency and make it have no effectNick Sieger2008-08-291-20/+5
|
* Add connection reset and verification upon each connection checkoutNick Sieger2008-08-291-2/+7
|
* Fix typo: was using brackets instead of parens. Must need more sleep.Nick Sieger2008-08-291-1/+1
|
* Favor existing connections over new ones if availableNick Sieger2008-08-291-3/+3
|
* More doco and class/method renames. Now have a strategy for integration with ↵Nick Sieger2008-08-291-24/+39
| | | | ActionPack.
* Fix checkin method, add a couple more testsNick Sieger2008-08-291-1/+1
|
* Nearing the finish line. Initial fixed-size connection pool implemented, ↵Nick Sieger2008-08-291-22/+116
| | | | more docs
* Clean up the code, get rid of reserve/release, add some more docsNick Sieger2008-08-291-34/+51
|
* Extract a base class for connection pools, start to flesh out ↵Nick Sieger2008-08-291-84/+105
| | | | reserve/release API
* Split connection handler into single- and multiple-thread versions.Nick Sieger2008-08-291-26/+40
|
* Connection handling methods extracted out into separate ConnectionHandler classNick Sieger2008-08-291-0/+89
| | | | - delegating methods left behind
* Fix failure to retain value of allow_concurrencyNick2008-08-291-1/+2
| | | | | - Also carry allow_concurrency value through to connection adapter (for postgresql)
* Add synchronization to connection pool alsoNick2008-08-291-3/+11
|
* Introduce synchronization around connection pool accessNick2008-08-291-8/+7
| | | | | | - use new active support Module#synchronize - allow_concurrency now switches between a null monitor and a regular monitor (defaulting to null monitor to avoid overhead)
* Initial conversion to connection poolNick2008-08-291-0/+128
So far so good, tests still run clean. Next steps: synchronize connection pool access and modification, and change allow_concurrency to simply switch a real lock for a null lock.