Do not disable autocommit until we fully migrate

Some dbapi calls are still relying on it (e.g. touch_conductor
apparently), causing sqlite databases to get locked.

Change-Id: If17d49ef434cf60876a81dae8e5ddaa6dc45e707
This commit is contained in:
Dmitry Tantsur 2022-10-24 11:42:33 +02:00
parent ac8842a775
commit cec04bb04e
1 changed files with 3 additions and 1 deletions

View File

@ -12,5 +12,7 @@
from oslo_db.sqlalchemy import enginefacade
# FIXME(stephenfin): we need to remove reliance on autocommit semantics ASAP
# since it's not compatible with SQLAlchemy 2.0
# NOTE(dtantsur): we want sqlite as close to a real database as possible.
enginefacade.configure(sqlite_fk=True)
enginefacade.configure(sqlite_fk=True, __autocommit=True)