mirror of
https://github.com/MariaDB/server.git
synced 2025-11-09 11:41:36 +03:00
Under `@@rpl_semi_sync_master_wait_no_slave = 0`, when `rpl_semi_sync_master_clients` decrements to zero, the primary reverts to async replication. This code did not check whether Semi- Sync is still globally enabled or not as it didn’t matter before. However, after MDEV-33551 (#3089) split the transactions’ACK condition variables to per-transaction, this function now needs Semi-Sync’s transaction tracker to unblock these condition variables in batch, but this tracker is `NULL` when Semi-Sync Primary is disabled. Co-authored-by: Kristian Nielsen <knielsen@knielsen-hq.org>
How to run. =========== ./mysql-test-run.pl --suite=rpl --mysqld=--binlog-format=mixed