Portability fix
sql/set_var.cc: Unbreak REPORT_PORT on big endian machines where sizeof long != sizeof int.
This commit is contained in:
parent
f306959153
commit
24ff5760e0
@ -713,7 +713,7 @@ static uchar *slave_get_report_port(THD *thd)
|
|||||||
return (uchar*) &thd->sys_var_tmp.long_value;
|
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
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user