[server/session] add missing rollback when freeing a db connection
When we let go of a cnxset and give it back to the pool, we need to make
sure it's not in the middle of a transaction.
We got bitten by a migration where the connection used by admin's
repo.connect was not rolled back before attempting the migration,
causing a deadlock because it had a lock on a table. This could
potentially also be an issue for e.g. hooks or looping tasks that didn't
explicitly rollback before calling free_cnxset or moving out of a
ensure_cnx_set block.
Source: %(distname)s
Section: web
Priority: optional
Maintainer: %(author)s <%(author-email)s>
Build-Depends: debhelper (>= 7), python (>= 2.6), python-support
Standards-Version: 3.9.3
XS-Python-Version: >= 2.6
Package: %(distname)s
Architecture: all
Depends:
cubicweb-common (>= %(version)s),
${python:Depends},
${misc:Depends},
Description: %(shortdesc)s
CubicWeb is a semantic web application framework.
.
%(longdesc)s
.
This package will install all the components you need to run the
%(distname)s application (cube :)..