db: Remove use of autocommit

This is no longer necessary.

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: If34b4511dbbd95598f4370eb7b28585d153cf118
This commit is contained in:
Stephen Finucane 2023-09-21 12:48:02 +01:00
parent b710d3fdad
commit 45e0eaaa61
1 changed files with 0 additions and 3 deletions

View File

@ -127,9 +127,6 @@ class Connection(base.Connection):
options['connection'] = self.dress_url(conf.database.connection)
options['max_retries'] = 0
options['sqlite_fk'] = True
# FIXME(stephenfin): Remove this asap since it's not compatible
# with SQLAlchemy 2.0
options['__autocommit'] = True
# oslo.db doesn't support options defined by Aodh
for opt in storage.OPTS:
options.pop(opt.name, None)