Magnus,
Can you please review this patch? It's a fix for a non-critical
portability issue on 64-bit big endian machines that would cause
REPORT_PORT to be displayed as 0.
> sql/set_var.cc@stripped, 2008-04-01 11:03:06+02:00, df@stripped +1 -1
> Unbreak REPORT_PORT on big endian machines where sizeof long != sizeof int.
>
> diff -Nrup a/sql/set_var.cc b/sql/set_var.cc
> --- a/sql/set_var.cc 2008-03-31 09:40:36 +02:00
> +++ b/sql/set_var.cc 2008-04-01 11:03:06 +02:00
> @@ -713,7 +713,7 @@ static uchar *slave_get_report_port(THD
> return (uchar*) &thd->sys_var_tmp.long_value;
> }
>
> -static sys_var_readonly sys_repl_report_port(&vars, "report_port",
> OPT_GLOBAL, SHOW_INT, slave_get_report_port);
> +static sys_var_readonly sys_repl_report_port(&vars, "report_port",
> OPT_GLOBAL, SHOW_LONG, slave_get_report_port);
>
> #endif
Daniel
--
Daniel Fischer, Team Lead, Build +46 18174400 ext. 4537
MySQL GmbH, Dachauer Strasse 37, D-80335 Muenchen - www.mysql.com
Geschaeftsfuehrer: Kaj Arnoe HRB Muenchen 162140
Are you MySQL certified? mysql.com/certification 49.011, 8.376