Remove unused binlogrouter variables
The unused variables cause compilation to fail.
This commit is contained in:
@ -3852,9 +3852,7 @@ int blr_handle_change_master(ROUTER_INSTANCE* router,
|
|||||||
char *error)
|
char *error)
|
||||||
{
|
{
|
||||||
char *master_logfile = NULL;
|
char *master_logfile = NULL;
|
||||||
char *master_log_pos = NULL;
|
|
||||||
int change_binlog = 0;
|
int change_binlog = 0;
|
||||||
long long pos = 0;
|
|
||||||
MASTER_SERVER_CFG *current_master = NULL;
|
MASTER_SERVER_CFG *current_master = NULL;
|
||||||
CHANGE_MASTER_OPTIONS change_master;
|
CHANGE_MASTER_OPTIONS change_master;
|
||||||
int parse_ret;
|
int parse_ret;
|
||||||
@ -4007,17 +4005,6 @@ int blr_handle_change_master(ROUTER_INSTANCE* router,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set new binlog position from parsed SQL command */
|
|
||||||
master_log_pos = change_master.binlog_pos;
|
|
||||||
if (master_log_pos == NULL)
|
|
||||||
{
|
|
||||||
pos = 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
pos = atoll(master_log_pos);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Change the replication user */
|
/* Change the replication user */
|
||||||
blr_set_master_user(router, change_master.user);
|
blr_set_master_user(router, change_master.user);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user