Don't use log_slow_queries for MariaDB 10.0+ (it's deprecated)
parent
e39270c77f
commit
e51a980af1
|
@ -26,7 +26,9 @@ log-error = {{ mysql_log_error }}
|
||||||
|
|
||||||
{% if mysql_slow_query_log_enabled %}
|
{% if mysql_slow_query_log_enabled %}
|
||||||
# Slow query log configuration.
|
# Slow query log configuration.
|
||||||
|
{% if mysql_vendor not in ['mariadb', 'mariadbgalera'] or mysql_mariadb_version | version_compare('10.0', '<') %}
|
||||||
log_slow_queries = 1
|
log_slow_queries = 1
|
||||||
|
{% endif %}
|
||||||
slow_query_log = 1
|
slow_query_log = 1
|
||||||
slow_query_log_file = {{ mysql_slow_query_log_file }}
|
slow_query_log_file = {{ mysql_slow_query_log_file }}
|
||||||
long_query_time = {{ mysql_slow_query_time }}
|
long_query_time = {{ mysql_slow_query_time }}
|
||||||
|
|
Loading…
Reference in New Issue