mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
don't need to tag the slave SQL thread as "bootstrap". It causes duplicate
error messages when a query goes wrong. Note that from now on, if you run with --slave-skip-error=xx, then nothing will be printed to the error log when the slave is having this error xx and skipping it (but you don't care as you want to skip it). sql/repl_failsafe.cc: a comment about the use of thd->bootstrap in failsafe (unused code)
This commit is contained in:
parent
350ad5003e
commit
0e6b9457fe
2 changed files with 5 additions and 1 deletions
|
@ -63,6 +63,11 @@ static Slave_log_event* find_slave_event(IO_CACHE* log,
|
|||
static int init_failsafe_rpl_thread(THD* thd)
|
||||
{
|
||||
DBUG_ENTER("init_failsafe_rpl_thread");
|
||||
/*
|
||||
thd->bootstrap is to report errors barely to stderr; if this code is
|
||||
enable again one day, one should check if bootstrap is still needed (maybe
|
||||
this thread has no other error reporting method).
|
||||
*/
|
||||
thd->system_thread = thd->bootstrap = 1;
|
||||
thd->host_or_ip= "";
|
||||
thd->client_capabilities = 0;
|
||||
|
|
|
@ -2516,7 +2516,6 @@ static int init_slave_thread(THD* thd, SLAVE_THD_TYPE thd_type)
|
|||
DBUG_ENTER("init_slave_thread");
|
||||
thd->system_thread = (thd_type == SLAVE_THD_SQL) ?
|
||||
SYSTEM_THREAD_SLAVE_SQL : SYSTEM_THREAD_SLAVE_IO;
|
||||
thd->bootstrap= 1;
|
||||
thd->host_or_ip= "";
|
||||
thd->client_capabilities = 0;
|
||||
my_net_init(&thd->net, 0);
|
||||
|
|
Loading…
Reference in a new issue