]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Adapt event exec_once_mutex to asyncio
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 14 Sep 2020 12:04:09 +0000 (08:04 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 14 Sep 2020 12:04:09 +0000 (08:04 -0400)
commit4d17fe4063adef50c1d529993e0b047f503940e2
tree20b53461c593e71297fa034ccdaaea629c461728
parent056c929e15c735059b2f17f9ae5391d3ad244907
Adapt event exec_once_mutex to asyncio

The pool makes use of a threading.Lock() for the
"first_connect" event.  if the pool is async make sure this
is a greenlet-adapted asyncio lock.

Fixes: #5581
Change-Id: If52415839c7ed82135465f1fe93b95d86c305820
lib/sqlalchemy/event/attr.py
lib/sqlalchemy/event/base.py
lib/sqlalchemy/event/registry.py
lib/sqlalchemy/pool/base.py
lib/sqlalchemy/pool/events.py
lib/sqlalchemy/pool/impl.py
lib/sqlalchemy/util/_concurrency_py3k.py
lib/sqlalchemy/util/concurrency.py
test/ext/asyncio/test_engine_py3k.py