1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

Bug#29915479 RUNNING COM_REGISTER_SLAVE WITHOUT COM_BINLOG_DUMP CAN RESULTS IN SERVER EXIT

in fact, in MariaDB it cannot, but it can show spurious slaves
in SHOW SLAVE HOSTS.

slave was registered in COM_REGISTER_SLAVE and un-registered after
COM_BINLOG_DUMP. If there was no COM_BINLOG_DUMP, it would never
unregister.
This commit is contained in:
Sergei Golubchik
2020-04-28 14:59:47 +02:00
parent 8c534bdeb8
commit 6bb28e0bc5
5 changed files with 52 additions and 1 deletions

View File

@ -63,6 +63,7 @@
#include "sql_parse.h" // is_update_query
#include "sql_callback.h"
#include "sql_connect.h"
#include "repl_failsafe.h"
/*
The following is used to initialise Table_ident with a internal
@ -1496,6 +1497,7 @@ THD::~THD()
if (rli_slave)
rli_slave->cleanup_after_session();
my_free(semisync_info);
unregister_slave(this, true, true);
#endif
free_root(&main_mem_root, MYF(0));