mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
bug fixes in server-id, moved replication functionality to
sql_repl.* will push this one, since the replication code now works repl-tests/test-dump/run.test: added slave/master reset sql/Makefile.am: added sql_repl.* sql/log_event.cc: moved #defines to log_event.h sql/log_event.h: moved #defines from log_event.cc sql/mysql_priv.h: added LOCK_server_id sql/mysqlbinlog.cc: added server id sql/mysqld.cc: added mutex_init for LOCK_server_id sql/slave.cc: added server_id to COM_BINLOG_DUMP sql/sql_base.cc: moved replication code to sql_repl.* sql/sql_parse.cc: moved replication code to sql_repl.*
This commit is contained in:
@ -270,8 +270,9 @@ static void dump_remote_log_entries(const char* logname)
|
||||
int4store(buf, position);
|
||||
int2store(buf + 4, binlog_flags);
|
||||
len = (uint) strlen(logname);
|
||||
memcpy(buf + 6, logname,len);
|
||||
if(mc_simple_command(mysql, COM_BINLOG_DUMP, buf, len + 6, 1))
|
||||
int4store(buf + 6, 0);
|
||||
memcpy(buf + 10, logname,len);
|
||||
if(mc_simple_command(mysql, COM_BINLOG_DUMP, buf, len + 10, 1))
|
||||
die("Error sending the log dump command");
|
||||
|
||||
for(;;)
|
||||
|
Reference in New Issue
Block a user