mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge neptunus.(none):/home/msvensson/mysql/mysql-5.1
into neptunus.(none):/home/msvensson/mysql/mysql-5.1-maint
This commit is contained in:
@ -530,11 +530,11 @@ HOSTS";
|
||||
|
||||
while ((row= mysql_fetch_row(res)))
|
||||
{
|
||||
uint32 server_id;
|
||||
uint32 log_server_id;
|
||||
SLAVE_INFO* si, *old_si;
|
||||
server_id = atoi(row[0]);
|
||||
log_server_id = atoi(row[0]);
|
||||
if ((old_si= (SLAVE_INFO*)hash_search(&slave_list,
|
||||
(byte*)&server_id,4)))
|
||||
(byte*)&log_server_id,4)))
|
||||
si = old_si;
|
||||
else
|
||||
{
|
||||
@ -544,7 +544,7 @@ HOSTS";
|
||||
pthread_mutex_unlock(&LOCK_slave_list);
|
||||
goto err;
|
||||
}
|
||||
si->server_id = server_id;
|
||||
si->server_id = log_server_id;
|
||||
my_hash_insert(&slave_list, (byte*)si);
|
||||
}
|
||||
strmake(si->host, row[1], sizeof(si->host)-1);
|
||||
@ -918,14 +918,14 @@ bool load_master_data(THD* thd)
|
||||
setting active_mi, because init_master_info() sets active_mi with
|
||||
defaults.
|
||||
*/
|
||||
int error;
|
||||
int error_2;
|
||||
|
||||
if (init_master_info(active_mi, master_info_file, relay_log_info_file,
|
||||
0, (SLAVE_IO | SLAVE_SQL)))
|
||||
my_message(ER_MASTER_INFO, ER(ER_MASTER_INFO), MYF(0));
|
||||
strmake(active_mi->master_log_name, row[0],
|
||||
sizeof(active_mi->master_log_name));
|
||||
active_mi->master_log_pos= my_strtoll10(row[1], (char**) 0, &error);
|
||||
active_mi->master_log_pos= my_strtoll10(row[1], (char**) 0, &error_2);
|
||||
/* at least in recent versions, the condition below should be false */
|
||||
if (active_mi->master_log_pos < BIN_LOG_HEADER_SIZE)
|
||||
active_mi->master_log_pos = BIN_LOG_HEADER_SIZE;
|
||||
|
Reference in New Issue
Block a user