mariadb/mysql-test/suite/rpl
Geng Tian c45a0d8678 MDEV-38454 CHANGE MASTER TO master_heartbeat_period does not accept numbers with + sign
Fixed parser inconsistency where CHANGE MASTER TO master_heartbeat_period
rejected numeric values with an explicit '+' sign, while other parameters
like master_connect_retry accepted them.

The issue was in sql/sql_yacc.yy where master_heartbeat_period used
NUM_literal (which doesn't accept '+'), while other parameters used
ulong_num (which includes opt_plus).

Solution: Added opt_plus before NUM_literal in the master_heartbeat_period
grammar rule, making it consistent with other numeric parameters.

Added test case to verify:
- master_heartbeat_period=+60 now works (was broken)
- master_heartbeat_period=60 still works (backward compatible)

All new code of the whole pull request, including one or several files
that are either new files or modified ones, are contributed under the
BSD-new license. I am contributing on behalf of my employer Amazon Web
Services, Inc.
2026-03-14 07:27:41 +02:00
..
extension mtr: use env for perl 2020-06-23 03:24:46 +02:00
include MDEV-38624: disallow skipping ER_CONNECTION_KILLED 2026-02-27 11:17:05 +02:00
r MDEV-38454 CHANGE MASTER TO master_heartbeat_period does not accept numbers with + sign 2026-03-14 07:27:41 +02:00
t MDEV-38454 CHANGE MASTER TO master_heartbeat_period does not accept numbers with + sign 2026-03-14 07:27:41 +02:00
disabled.def Fix RPL tests post DEBUG_SYNC change 2023-02-10 14:44:45 +02:00
my.cnf Remove duplicated default client include from replication my.cnf 2023-09-14 12:56:41 +02:00
README
rpl_1slave_base.cnf

How to run.
===========

./mysql-test-run.pl --suite=rpl --mysqld=--binlog-format=mixed