]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Change state in critical section on pool.close()
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Mon, 22 Feb 2021 01:49:16 +0000 (02:49 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 12 Mar 2021 04:07:25 +0000 (05:07 +0100)
commit1831b8f0fff198fc557b0a7c7af85dc8aa12ab0e
treed6003fb6bf6c43fec1ae8433e7091b2b29b02aa5
parent9009f52091e38767b69a02a18778b93d637eb4a2
Change state in critical section on pool.close()

Nothing bad should happen, because what maintains the state respect the
_closed state. However because the logic is complex make it more
defensive.
psycopg3/psycopg3/pool.py