Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Synchronize around deleting from the reserved connections hash. | Aaron Patterson | 2012-10-15 | 1 | -1/+1 |
| | | | | Fixes #7955 | ||||
* | ConnectionPool accepts spec key 'checkout_timeout' | Jonathan Rochkind | 2012-09-24 | 1 | -3/+9 |
| | | | | | | | Backport of #6441 cb6f83935 . Old 'wait_timeout' is still supported, but conflicts with mysql2 using that spec key for different thing. 'checkout_timeout' can now be used taking precedence for ConnectionPool over 'wait_timeout'. | ||||
* | Revert "backport fair connection pool 02b2335563 to 3-2-stable" | Rafael Mendonça França | 2012-09-20 | 1 | -190/+49 |
| | | | | | | | | | | | | | This reverts commit 0693e079708a52b777f2b7872b8e3d467b880a0d. Revert "Cache columns metadata to avoid extra while testing" This reverts commit a82f1e3f5d11c8dfba9f4c911745ec40a7965216. Reason: This is causing failures in the postgresql build. See http://travis-ci.org/#!/rails/rails/builds/2485584 Related with #7675 | ||||
* | backport fair connection pool 02b2335563 to 3-2-stable | Jonathan Rochkind | 2012-09-17 | 1 | -49/+190 |
| | |||||
* | Synchronize the ConnectionPool#release method to avoid thread safety issues ↵ | Andrew Selder | 2012-05-23 | 1 | -10/+12 |
| | | | | | | | | | | | | | | | | | | | | [#6464] Fixes #6464 Synchronize the contents of the release method in ConnectionPool due to errors when running in high concurrency environments. Detected invalid hash contents due to unsynchronized modifications with concurrent users org/jruby/RubyHash.java:1356:in `keys' /usr/local/rvm/gems/jruby-1.6.7@new_import/gems/activerecord-3.2.3/lib/a ctive_record/connection_adapters/abstract/connection_pool.rb:294:in `release' /usr/local/rvm/gems/jruby-1.6.7@new_import/gems/activerecord-3.2.3/lib/a ctive_record/connection_adapters/abstract/connection_pool.rb:282:in `checkin' | ||||
* | Merge pull request #6398 from pmahoney/threadsafe-connection-pool | Aaron Patterson | 2012-05-19 | 1 | -4/+8 |
| | | | | Synchronize read and modification of @reserved_connections | ||||
* | ConnectionPool.checkout takes account of ruby using 'non-blocking condition ↵ | Jonathan Rochkind | 2012-03-13 | 1 | -9/+18 |
| | | | | variables' in mutex ConditionVariables | ||||
* | make sure connections returned after close are marked as in_use | Aaron Patterson | 2012-03-12 | 1 | -0/+16 |
| | |||||
* | inline docs for clear_active_connections! no longer says it cleans dead ↵ | Jonathan Rochkind | 2012-03-12 | 1 | -3/+1 |
| | | | | threads, it doesn't since 3.2.0 | ||||
* | make active_connection? return true only if there is an open connection in ↵ | Aaron Patterson | 2012-03-08 | 1 | -3/+4 |
| | | | | use for the current thread. fixes #5330 | ||||
* | push synchronization in to each method. Reduces method calls and makes | Aaron Patterson | 2011-11-29 | 1 | -25/+29 |
| | | | | it clear which methods are synchronized. | ||||
* | Automatic closure of connections in threads is deprecated. For example | Aaron Patterson | 2011-11-29 | 1 | -1/+7 |
| | | | | | | | | | | | | | | | | | the following code is deprecated: Thread.new { Post.find(1) }.join It should be changed to close the database connection at the end of the thread: Thread.new { Post.find(1) Post.connection.close }.join Only people who spawn threads in their application code need to worry about this change. | ||||
* | AbstractAdapter#close can be called to add the connection back to the | Aaron Patterson | 2011-11-29 | 1 | -0/+1 |
| | | | | pool. | ||||
* | Start implementing @reserved_connections in terms of connection leases. | Aaron Patterson | 2011-11-29 | 1 | -3/+3 |
| | |||||
* | Rename `checked_out` to more descriptive `active_connections` | Aaron Patterson | 2011-11-29 | 1 | -3/+3 |
| | |||||
* | Use connection lease to determine "checked_out" connections | Aaron Patterson | 2011-11-29 | 1 | -17/+21 |
| | |||||
* | remove unused instance variable | Aaron Patterson | 2011-11-28 | 1 | -1/+0 |
| | |||||
* | just check in all connections | Aaron Patterson | 2011-11-28 | 1 | -6/+2 |
| | |||||
* | pools are 1:1 with spec now rather than 1:1 with class | Aaron Patterson | 2011-11-28 | 1 | -3/+6 |
| | |||||
* | oops! I suck! :bomb: | Aaron Patterson | 2011-11-20 | 1 | -1/+0 |
| | |||||
* | pushing caching and visitors down to the connection | Aaron Patterson | 2011-11-19 | 1 | -77/+31 |
| | |||||
* | Fix pull request #3609 | Noé Froidevaux | 2011-11-13 | 1 | -1/+1 |
| | |||||
* | Prevent multiple SHOW TABLES calls when a table don't exists in database. | Noé Froidevaux | 2011-11-11 | 1 | -3/+3 |
| | |||||
* | use thread locals and an instance variable within QueryCache#BodyProxy to ↵ | Mark J. Titorenko | 2011-10-07 | 1 | -1/+1 |
| | | | | maintain appropriate linkage with AR database connection across threads | ||||
* | Merge pull request #2897 from rsutphin/ar31-remove_connection | Aaron Patterson | 2011-09-06 | 1 | -1/+1 |
| | | | | Patch for issue #2820 | ||||
* | Make it the responsibility of the connection to hold onto an ARel visitor ↵ | Jon Leighton | 2011-08-08 | 1 | -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 instantiation | Aaron Patterson | 2011-06-27 | 1 | -0/+9 |
| | |||||
* | Fix inconsistencies by being polite to the wrapped body. Needed for ↵ | Steve Hodgkiss | 2011-06-18 | 1 | -0/+8 |
| | | | | Rack::Sendfile to function properly. See issue #1761. | ||||
* | Allow the connection pool's #table_exists? method to give the connections ↵ | Ken Collins | 2011-06-10 | 1 | -0/+1 |
| | | | | #table_exists? method a chance. | ||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-05-25 | 1 | -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 Martinez | 2011-05-23 | 1 | -1/+1 |
| | | |||||
* | | Remove extra white-space on some exception messages. | Sebastian Martinez | 2011-05-23 | 1 | -1/+1 |
|/ | |||||
* | Fixed punctuation errors. | Sebastian Martinez | 2011-04-22 | 1 | -4/+4 |
| | |||||
* | make sure that active connections are not cleared during test when an ↵ | Aaron Patterson | 2011-03-29 | 1 | -2/+4 |
| | | | | exception happens | ||||
* | clearing active connections in the ConnectionManagement middleware if an ↵ | Aaron Patterson | 2011-03-29 | 1 | -0/+3 |
| | | | | exception happens | ||||
* | proxy body responses so we close database connections after body is flushed | Aaron Patterson | 2011-03-29 | 1 | -7/+24 |
| | |||||
* | adding active_connections? to the connection pool for finding open connections | Aaron Patterson | 2011-03-28 | 1 | -0/+6 |
| | |||||
* | adding active_connection? to the connection pool | Aaron Patterson | 2011-03-28 | 1 | -0/+6 |
| | |||||
* | primary keys should not be cleared on cache clear, fixing oracle tests | Aaron Patterson | 2011-02-08 | 1 | -2/+0 |
| | |||||
* | the connection pool caches table_exists? calls | Aaron Patterson | 2011-02-07 | 1 | -8/+14 |
| | |||||
* | adjust query counts to be consistent across databases, make sure database ↵ | Aaron Patterson | 2011-02-04 | 1 | -5/+9 |
| | | | | log the same things | ||||
* | column cache now lives on the connection pool | Aaron Patterson | 2011-02-04 | 1 | -1/+5 |
| | |||||
* | almost fisted | Aaron Patterson | 2011-02-04 | 1 | -0/+7 |
| | |||||
* | making sure primary key is set on the columns | Aaron Patterson | 2011-02-04 | 1 | -1/+9 |
| | |||||
* | connection pool can cache column, table, and primary key information | Aaron Patterson | 2011-02-04 | 1 | -0/+34 |
| | |||||
* | Use run_callbacks; the generated _run_<name>_callbacks method is not a ↵ | John Firebaugh | 2011-01-31 | 1 | -1/+1 |
| | | | | | | public interface. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | Don't depend on rubygems loading thread (for Mutex) | raggi | 2010-11-25 | 1 | -0/+1 |
| | |||||
* | removing false comment | Aaron Patterson | 2010-10-07 | 1 | -2/+0 |
| | |||||
* | fix ruby 1.9 deadlock problem, fixes #5736 add connection pool tests | Hemant Kumar | 2010-10-06 | 1 | -8/+6 |
| | |||||
* | removing useless ternary | Aaron Patterson | 2010-08-19 | 1 | -1/+1 |
| |