summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Finucane <stephenfin@redhat.com>2018-03-09 11:01:16 +0000
committerVlad Gusev <vlad.esten@gmail.com>2018-10-17 10:21:21 +0000
commit0602eb60a79a1affda9ccf46423e20333baeaf3c (patch)
treec4935165687448ac465a83a20926651bef2b90cd
parent4318cc75e227d58e0682d92003dbdae821f8c6e4 (diff)
downloadoslo-db-0602eb60a79a1affda9ccf46423e20333baeaf3c.tar.gz
Ignore 'use_tpool' option4.33.2
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 698c62702af8f9ccca574a7ad714d3ae1298a5a8)
-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 1617ebb..7006a2d 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