diff --git a/lib/charms/mysql/v0/mysql.py b/lib/charms/mysql/v0/mysql.py index 04697a107..67c754960 100644 --- a/lib/charms/mysql/v0/mysql.py +++ b/lib/charms/mysql/v0/mysql.py @@ -1006,6 +1006,7 @@ def render_mysqld_configuration( # noqa: C901 "general_log": "ON", "general_log_file": f"{snap_common}/var/log/mysql/general.log", "slow_query_log_file": f"{snap_common}/var/log/mysql/slowquery.log", + "loose-group_replication_paxos_single_leader": "ON", "binlog_expire_logs_seconds": f"{binlog_retention_seconds}", "loose-audit_log_policy": "LOGINS", "loose-audit_log_file": f"{snap_common}/var/log/mysql/audit.log", diff --git a/tests/unit/test_mysql.py b/tests/unit/test_mysql.py index 7b51fa467..c601057be 100644 --- a/tests/unit/test_mysql.py +++ b/tests/unit/test_mysql.py @@ -1833,6 +1833,7 @@ def test_render_mysqld_configuration(self, _get_available_memory): "loose-audit_log_policy": "LOGINS", "loose-audit_log_strategy": "ASYNCHRONOUS", "loose-audit_log_file": "/var/log/mysql/audit.log", + "loose-group_replication_paxos_single_leader": "ON", "innodb_buffer_pool_chunk_size": "2902458368", } self.maxDiff = None diff --git a/tests/unit/test_mysqlsh_helpers.py b/tests/unit/test_mysqlsh_helpers.py index 3d030e37d..c52c64de8 100644 --- a/tests/unit/test_mysqlsh_helpers.py +++ b/tests/unit/test_mysqlsh_helpers.py @@ -292,6 +292,7 @@ def test_write_mysqld_config( "general_log = ON", "general_log_file = /var/snap/charmed-mysql/common/var/log/mysql/general.log", "slow_query_log_file = /var/snap/charmed-mysql/common/var/log/mysql/slowquery.log", + "loose-group_replication_paxos_single_leader = ON", "binlog_expire_logs_seconds = 604800", "loose-audit_log_policy = LOGINS", "loose-audit_log_file = /var/snap/charmed-mysql/common/var/log/mysql/audit.log", @@ -335,6 +336,7 @@ def test_write_mysqld_config( "general_log = ON", "general_log_file = /var/snap/charmed-mysql/common/var/log/mysql/general.log", "slow_query_log_file = /var/snap/charmed-mysql/common/var/log/mysql/slowquery.log", + "loose-group_replication_paxos_single_leader = ON", "binlog_expire_logs_seconds = 604800", "loose-audit_log_policy = LOGINS", "loose-audit_log_file = /var/snap/charmed-mysql/common/var/log/mysql/audit.log",