1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-25674: Add CHANGE MASTER TO master_retry_count

This new CHANGE MASTER TO field specifies the `--master-retry-count`
(global option: the number of Primary connection attempts)
for each multi-source replica; i.e, per-channel `performance_schema.`
`replication_connection_configuration.CONNECTION_RETRY_COUNT`.

`--master-retry-count` remains the default for new `CHANGE MASTER TO`s.

This new keyword and `master-info` entry
matches those of pre-‘REPLICATION SOURCE’ MySQL.
This commit is contained in:
ParadoxV5
2025-02-19 16:51:54 -07:00
parent 66f52ba630
commit 7094a75596
11 changed files with 174 additions and 18 deletions

View File

@@ -255,7 +255,7 @@ void table_replication_connection_configuration::make_row(Master_info *mi)
m_row.connection_retry_interval= (unsigned int) mi->connect_retry;
m_row.connection_retry_count= master_retry_count; //(ulong) mi->retry_count;
m_row.connection_retry_count= mi->retry_count;
m_row.heartbeat_interval= (double)mi->heartbeat_period;