Fix the wrong default value of idle_timeout

Currently we always get the following warnings because of the wrong
default value of idle_timeout.

The idle_timeout parameter is deprecated.
Please use connection_recycle_time instead.

This change fixes the default and ensures that the warning message
is shown only when the deprecated parameter is set.

Change-Id: Iba93ffdacf45096a6db65f3f0dfcfaf7d87574f2
This commit is contained in:
Takashi Kajinami 2021-02-15 09:44:09 +09:00
parent 17fffffa87
commit 12e2f4a886
1 changed files with 2 additions and 2 deletions

View File

@ -147,7 +147,7 @@ define oslo::db(
$use_tpool = $::os_service_default,
$mysql_enable_ndb = $::os_service_default,
# DEPRCATED PARAMETERS
$idle_timeout = $::os_service_default,
$idle_timeout = undef,
$min_pool_size = undef,
) {
@ -194,7 +194,7 @@ define oslo::db(
}
}
if $idle_timeout {
if $idle_timeout != undef {
warning('The idle_timeout parameter is deprecated. Please use connection_recycle_time instead.')
}