mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
WL#5670: Proposal: Remove SHOW NEW MASTER statement
Removes SHOW NEW MASTER statement and all related code. Also removes the unused function update_slave_list from repl_failsafe.cc.
This commit is contained in:
@ -1694,23 +1694,6 @@ int reset_master(THD* thd)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int cmp_master_pos(const char* log_file_name1, ulonglong log_pos1,
|
||||
const char* log_file_name2, ulonglong log_pos2)
|
||||
{
|
||||
int res;
|
||||
size_t log_file_name1_len= strlen(log_file_name1);
|
||||
size_t log_file_name2_len= strlen(log_file_name2);
|
||||
|
||||
// We assume that both log names match up to '.'
|
||||
if (log_file_name1_len == log_file_name2_len)
|
||||
{
|
||||
if ((res= strcmp(log_file_name1, log_file_name2)))
|
||||
return res;
|
||||
return (log_pos1 < log_pos2) ? -1 : (log_pos1 == log_pos2) ? 0 : 1;
|
||||
}
|
||||
return ((log_file_name1_len < log_file_name2_len) ? -1 : 1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
Execute a SHOW BINLOG EVENTS statement.
|
||||
|
Reference in New Issue
Block a user