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
(cherry picked from commit 698c62702a
)
This commit is contained in:
parent
4318cc75e2
commit
0602eb60a7
|
@ -164,15 +164,15 @@ class _TransactionFactory(object):
|
|||
'on_engine_create': [],
|
||||
}
|
||||
|
||||
# other options that are defined in oslo.db.options.database_opts
|
||||
# but do not apply to the standard enginefacade arguments
|
||||
# (most seem to apply to api.DBAPI).
|
||||
# other options that are defined in oslo_db.options.database_opts
|
||||
# or oslo_db.concurrency.tpool_opts but do not apply to the standard
|
||||
# enginefacade arguments (most seem to apply to api.DBAPI).
|
||||
self._ignored_cfg = dict(
|
||||
(k, _Default(None)) for k in [
|
||||
'db_max_retries', 'db_inc_retry_interval',
|
||||
'use_db_reconnect',
|
||||
'db_retry_interval', 'min_pool_size',
|
||||
'db_max_retry_interval', 'backend'])
|
||||
'db_max_retry_interval', 'backend', 'use_tpool'])
|
||||
|
||||
self._started = False
|
||||
self._legacy_facade = None
|
||||
|
|
Loading…
Reference in New Issue