summaryrefslogtreecommitdiff
path: root/oslo_db
diff options
context:
space:
mode:
authorStephen Finucane <stephenfin@redhat.com>2018-03-09 11:01:16 +0000
committerStephen Finucane <stephenfin@redhat.com>2018-03-09 11:01:16 +0000
commit698c62702af8f9ccca574a7ad714d3ae1298a5a8 (patch)
treee92a665332346df0f95522c60c5d15926ac56643 /oslo_db
parent1d46c7e4ebecb7f14e1f49c2bd00d8bf70d461c6 (diff)
downloadoslo-db-698c62702af8f9ccca574a7ad714d3ae1298a5a8.tar.gz
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
Diffstat (limited to 'oslo_db')
-rw-r--r--oslo_db/sqlalchemy/enginefacade.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/oslo_db/sqlalchemy/enginefacade.py b/oslo_db/sqlalchemy/enginefacade.py
index 80c320b..cca694b 100644
--- a/oslo_db/sqlalchemy/enginefacade.py
+++ b/oslo_db/sqlalchemy/enginefacade.py
@@ -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