Browse Source

Revert "Don't use '_TransactionContextManager._async'"

This reverts commit bd7d991309 and bumps
the minimum version of oslo.db to 4.40.0, as that is the first version
of the library to include the renamed attribute.

Change-Id: Ic9e7864be3af7ef362cad5648dfc7bdecd104465
Related-Bug: #1788833
tags/19.0.0.0rc1
Stephen Finucane 1 year ago
parent
commit
964832d37d
3 changed files with 3 additions and 3 deletions
  1. 1
    1
      lower-constraints.txt
  2. 1
    1
      nova/db/sqlalchemy/api.py
  3. 1
    1
      requirements.txt

+ 1
- 1
lower-constraints.txt View File

@@ -79,7 +79,7 @@ oslo.cache==1.26.0
79 79
 oslo.concurrency==3.26.0
80 80
 oslo.config==6.1.0
81 81
 oslo.context==2.19.2
82
-oslo.db==4.27.0
82
+oslo.db==4.40.0
83 83
 oslo.i18n==3.15.3
84 84
 oslo.log==3.36.0
85 85
 oslo.messaging==6.3.0

+ 1
- 1
nova/db/sqlalchemy/api.py View File

@@ -202,7 +202,7 @@ def select_db_reader_mode(f):
202 202
         use_slave = keyed_args.get('use_slave', False)
203 203
 
204 204
         if use_slave:
205
-            reader_mode = get_context_manager(context).async
205
+            reader_mode = get_context_manager(context).async_
206 206
         else:
207 207
             reader_mode = get_context_manager(context).reader
208 208
 

+ 1
- 1
requirements.txt View File

@@ -43,7 +43,7 @@ oslo.log>=3.36.0 # Apache-2.0
43 43
 oslo.reports>=1.18.0 # Apache-2.0
44 44
 oslo.serialization!=2.19.1,>=2.18.0 # Apache-2.0
45 45
 oslo.utils>=3.33.0 # Apache-2.0
46
-oslo.db>=4.27.0 # Apache-2.0
46
+oslo.db>=4.40.0 # Apache-2.0
47 47
 oslo.rootwrap>=5.8.0 # Apache-2.0
48 48
 oslo.messaging>=6.3.0 # Apache-2.0
49 49
 oslo.policy>=1.35.0 # Apache-2.0

Loading…
Cancel
Save