aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Make it the responsibility of the connection to hold onto an ARel visitor ↵Jon Leighton2011-08-081-4/+15
| | | | for generating SQL. This improves the code architecture generally, and solves some problems with marshalling. Adapter authors please take note: you now need to define an Adapter.visitor_for method, but it degrades gracefully with a deprecation warning for now.
* cache column defaults for AR object instantiationAaron Patterson2011-06-271-0/+9
|
* Fix inconsistencies by being polite to the wrapped body. Needed for ↵Steve Hodgkiss2011-06-181-0/+8
| | | | Rack::Sendfile to function properly. See issue #1761.
* Allow the connection pool's #table_exists? method to give the connections ↵Ken Collins2011-06-101-0/+1
| | | | #table_exists? method a chance.
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-05-251-1/+1
|\ | | | | | | | | | | Conflicts: actionmailer/lib/action_mailer/base.rb activesupport/lib/active_support/core_ext/kernel/requires.rb
| * Remove extra white spaces on ActiveRecord docs.Sebastian Martinez2011-05-231-1/+1
| |
* | Remove extra white-space on some exception messages.Sebastian Martinez2011-05-231-1/+1
|/
* Fixed punctuation errors.Sebastian Martinez2011-04-221-4/+4
|
* make sure that active connections are not cleared during test when an ↵Aaron Patterson2011-03-291-2/+4
| | | | exception happens
* clearing active connections in the ConnectionManagement middleware if an ↵Aaron Patterson2011-03-291-0/+3
| | | | exception happens
* proxy body responses so we close database connections after body is flushedAaron Patterson2011-03-291-7/+24
|
* adding active_connections? to the connection pool for finding open connectionsAaron Patterson2011-03-281-0/+6
|
* adding active_connection? to the connection poolAaron Patterson2011-03-281-0/+6
|
* primary keys should not be cleared on cache clear, fixing oracle testsAaron Patterson2011-02-081-2/+0
|
* the connection pool caches table_exists? callsAaron Patterson2011-02-071-8/+14
|
* adjust query counts to be consistent across databases, make sure database ↵Aaron Patterson2011-02-041-5/+9
| | | | log the same things
* column cache now lives on the connection poolAaron Patterson2011-02-041-1/+5
|
* almost fistedAaron Patterson2011-02-041-0/+7
|
* making sure primary key is set on the columnsAaron Patterson2011-02-041-1/+9
|
* connection pool can cache column, table, and primary key informationAaron Patterson2011-02-041-0/+34
|
* Use run_callbacks; the generated _run_<name>_callbacks method is not a ↵John Firebaugh2011-01-311-1/+1
| | | | | | public interface. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Don't depend on rubygems loading thread (for Mutex)raggi2010-11-251-0/+1
|
* removing false commentAaron Patterson2010-10-071-2/+0
|
* fix ruby 1.9 deadlock problem, fixes #5736 add connection pool testsHemant Kumar2010-10-061-8/+6
|
* 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>