diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-06-22 12:24:08 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-06-22 12:24:08 -0400 |
commit | 5f0a7bb152b30dd7b05771725a7ffe16e3af8f8a (patch) | |
tree | bc17038b5eb1a82ce41accbba56d9228d540858f /lib/sqlalchemy/engine/base.py | |
parent | 51a3a9ac8a76096a6a25eb2cc7404970561d5123 (diff) | |
download | sqlalchemy-5f0a7bb152b30dd7b05771725a7ffe16e3af8f8a.tar.gz |
- [bug] Fixed bug whereby
a disconnect detect + dispose that occurs
when the QueuePool has threads waiting
for connections would leave those
threads waiting for the duration of
the timeout on the old pool. The fix
now notifies those waiters with a special
exception case and has them move onto
the new pool. This fix may or may
not be ported to 0.7. [ticket:2522]
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
-rw-r--r-- | lib/sqlalchemy/engine/base.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py index d13344ff6..75f6ac29a 100644 --- a/lib/sqlalchemy/engine/base.py +++ b/lib/sqlalchemy/engine/base.py @@ -2253,8 +2253,7 @@ class Engine(Connectable, log.Identified): the engine are not affected. """ - self.pool.dispose() - self.pool = self.pool.recreate() + self.pool = self.pool._replace() @util.deprecated("0.7", "Use the create() method on the given schema " "object directly, i.e. :meth:`.Table.create`, " |