ensure that filename in COM_BINLOG_DUMP isn't too long
This commit is contained in:
parent
172e3a1bc6
commit
58aaae6f2a
@ -1271,9 +1271,12 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
|
|||||||
kill_zombie_dump_threads(slave_server_id);
|
kill_zombie_dump_threads(slave_server_id);
|
||||||
thd->server_id = slave_server_id;
|
thd->server_id = slave_server_id;
|
||||||
|
|
||||||
general_log_print(thd, command, "Log: '%s' Pos: %ld", packet+10,
|
const char *name= packet + 10;
|
||||||
(long) pos);
|
size_t nlen= strlen(name);
|
||||||
mysql_binlog_send(thd, thd->strdup(packet + 10), (my_off_t) pos, flags);
|
|
||||||
|
general_log_print(thd, command, "Log: '%s' Pos: %lu", name, pos);
|
||||||
|
if (nlen < FN_REFLEN)
|
||||||
|
mysql_binlog_send(thd, thd->strmake(name, nlen), (my_off_t)pos, flags);
|
||||||
unregister_slave(thd,1,1);
|
unregister_slave(thd,1,1);
|
||||||
/* fake COM_QUIT -- if we get here, the thread needs to terminate */
|
/* fake COM_QUIT -- if we get here, the thread needs to terminate */
|
||||||
error = TRUE;
|
error = TRUE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user