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:
@@ -147,7 +147,7 @@ define oslo::db(
|
|||||||
$use_tpool = $::os_service_default,
|
$use_tpool = $::os_service_default,
|
||||||
$mysql_enable_ndb = $::os_service_default,
|
$mysql_enable_ndb = $::os_service_default,
|
||||||
# DEPRCATED PARAMETERS
|
# DEPRCATED PARAMETERS
|
||||||
$idle_timeout = $::os_service_default,
|
$idle_timeout = undef,
|
||||||
$min_pool_size = 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.')
|
warning('The idle_timeout parameter is deprecated. Please use connection_recycle_time instead.')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user