sql_parse.cc we were using wrong strdup

parent a143a9bb
...@@ -739,7 +739,7 @@ bool do_command(THD *thd) ...@@ -739,7 +739,7 @@ bool do_command(THD *thd)
kill_zombie_dump_threads(slave_server_id = uint4korr(packet+7)); kill_zombie_dump_threads(slave_server_id = uint4korr(packet+7));
thd->server_id = slave_server_id; thd->server_id = slave_server_id;
pthread_mutex_unlock(&LOCK_server_id); pthread_mutex_unlock(&LOCK_server_id);
mysql_binlog_send(thd, strdup(packet + 11), pos, flags); mysql_binlog_send(thd, thd->strdup(packet + 11), pos, flags);
// 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;
net->error = 0; net->error = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment