]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Do away with pool._refs
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 1 Feb 2020 17:27:09 +0000 (12:27 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 1 Feb 2020 18:12:57 +0000 (13:12 -0500)
commitc797056413230cc5c11bc458e5f7760063c2682e
tree58a7cebda24e574aafe4a04b1258680248ed59fd
parent2df647cd7590ae31b542256a5036d2ff49f321aa
Do away with pool._refs

This collection was added only for the benefit of unit tests
and is unnecessary for the pool to function.  As SQLAlchemy 2.0
will be removing the automatic handling of connections that are
garbage collection, remove this collection so that we ultimately
don't need a weakref handler to do anything within the pool.
The handler will do nothing other than emit a warning that
a connection was dereferenced without being explicitly returned
to the pool, invalidated, or detached.

Change-Id: I4ca196270d5714efbac44dbf6f034e8c7f0af58a
lib/sqlalchemy/pool/__init__.py
lib/sqlalchemy/pool/base.py
lib/sqlalchemy/testing/assertions.py
lib/sqlalchemy/testing/engines.py
test/aaa_profiling/test_pool.py
test/engine/test_pool.py