Drop "__autocommit=False" from context manager
This parameter was dropped in oslo.db 12.1.0 [1][2]. This patch
is consequently bumping the oslo.db minimum version to 12.1.0.
[1]https://review.opendev.org/c/openstack/oslo.db/+/804775
[2]a530cbfcf2
Change-Id: Iadb56c88e45fbb2db00fff564bff443292025f66
This commit is contained in:
parent
e52a9372f7
commit
72cd6f33d4
@ -48,10 +48,7 @@ def _create_context_manager():
|
||||
global _CTX_MANAGER
|
||||
if _CTX_MANAGER is None:
|
||||
_CTX_MANAGER = enginefacade.transaction_context()
|
||||
# TODO(stephenfin): Drop "__autocommit=False" when oslo.db changes its
|
||||
# default (https://review.opendev.org/c/openstack/oslo.db/+/804775)
|
||||
_CTX_MANAGER.configure(sqlite_fk=True, flush_on_subtransaction=True,
|
||||
__autocommit=False)
|
||||
_CTX_MANAGER.configure(sqlite_fk=True, flush_on_subtransaction=True)
|
||||
|
||||
return _CTX_MANAGER
|
||||
|
||||
|
@ -17,7 +17,7 @@ os-ken >= 0.3.0 # Apache-2.0
|
||||
oslo.concurrency>=3.26.0 # Apache-2.0
|
||||
oslo.config>=8.0.0 # Apache-2.0
|
||||
oslo.context>=2.22.0 # Apache-2.0
|
||||
oslo.db>=4.44.0 # Apache-2.0
|
||||
oslo.db>=12.1.0 # Apache-2.0
|
||||
oslo.i18n>=3.20.0 # Apache-2.0
|
||||
oslo.log>=4.3.0 # Apache-2.0
|
||||
oslo.messaging>=14.2.0 # Apache-2.0
|
||||
|
Loading…
Reference in New Issue
Block a user