Browse Source

Ignore 'use_tpool' option

The sheer act of registering the 'use_tpool' option seems to be enough
to cause the following warning:

   NotSupportedWarning: Configuration option(s) ['use_tpool'] not
   supported

Add it to the list of ignored opts, thus silencing this warning.

Change-Id: I4a5f8958c3e0fc68fa3a4ae979f284c4fbd9b82b
Stephen Finucane 1 year ago
parent
commit
698c62702a
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      oslo_db/sqlalchemy/enginefacade.py

+ 4
- 4
oslo_db/sqlalchemy/enginefacade.py View File

@@ -164,15 +164,15 @@ class _TransactionFactory(object):
164 164
             'on_engine_create': [],
165 165
         }
166 166
 
167
-        # other options that are defined in oslo.db.options.database_opts
168
-        # but do not apply to the standard enginefacade arguments
169
-        # (most seem to apply to api.DBAPI).
167
+        # other options that are defined in oslo_db.options.database_opts
168
+        # or oslo_db.concurrency.tpool_opts but do not apply to the standard
169
+        # enginefacade arguments (most seem to apply to api.DBAPI).
170 170
         self._ignored_cfg = dict(
171 171
             (k, _Default(None)) for k in [
172 172
                 'db_max_retries', 'db_inc_retry_interval',
173 173
                 'use_db_reconnect',
174 174
                 'db_retry_interval', 'min_pool_size',
175
-                'db_max_retry_interval', 'backend'])
175
+                'db_max_retry_interval', 'backend', 'use_tpool'])
176 176
 
177 177
         self._started = False
178 178
         self._legacy_facade = None

Loading…
Cancel
Save