Revision 5f6ad491 snf-common/synnefo/lib/db/pooled_psycopg2/__init__.py
b/snf-common/synnefo/lib/db/pooled_psycopg2/__init__.py | ||
---|---|---|
119 | 119 |
try: |
120 | 120 |
# Reset this connection before putting it back |
121 | 121 |
# into the pool |
122 |
cursor = pooledconn.cursor() |
|
123 |
cursor.execute("ABORT; RESET ALL") |
|
122 |
pooledconn.rollback() |
|
124 | 123 |
except psycopg2.Error: |
125 | 124 |
# Since we're not going to be putting the psycopg2 connection |
126 | 125 |
# back into the pool, close it uncoditionally. |
Also available in: Unified diff