1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

skip updates with the same server id as self

kill zombie COM_BINLOG_DUMP with the same server id on connect
This commit is contained in:
sasha@mysql.sashanet.com
2000-10-02 17:59:12 -06:00
parent cb4749d684
commit d7659f6063
4 changed files with 69 additions and 11 deletions

View File

@ -41,6 +41,7 @@ char *sql_strdup(const char *str);
char *sql_strmake(const char *str,uint len);
gptr sql_memdup(const void * ptr,unsigned size);
void sql_element_free(void *ptr);
void kill_one_thread(THD *thd, ulong id);
#define x_free(A) { my_free((gptr) (A),MYF(MY_WME | MY_FAE | MY_ALLOW_ZERO_PTR)); }
#define safeFree(x) { if(x) { my_free((gptr) x,MYF(0)); x = NULL; } }