--- a/sql/sys_vars.cc +++ b/sql/sys_vars.cc @@ -7164,7 +7164,8 @@ static Sys_var_ulong Sys_binlog_row_event_max_size( "grouped into events smaller than this size if possible. " "The value has to be a multiple of 256.", READ_ONLY GLOBAL_VAR(binlog_row_event_max_size), CMD_LINE(REQUIRED_ARG), - VALID_RANGE(256, ULONG_MAX), DEFAULT(8192), BLOCK_SIZE(256)); + VALID_RANGE(256, mysql::binlog::event::max_log_event_size), + DEFAULT(8192), BLOCK_SIZE(256)); static bool check_group_replication_consistency(sys_var *self, THD *thd, set_var *var) {