summaryrefslogtreecommitdiff
path: root/sql/sql_repl.h
diff options
context:
space:
mode:
authorunknown <sasha@mysql.sashanet.com>2001-10-12 09:37:25 -0600
committerunknown <sasha@mysql.sashanet.com>2001-10-12 09:37:25 -0600
commita6c58676835f9424a5167a522497f1a20a5f03ee (patch)
treed203061bcdc7881db97565091caac83f2ac56fd4 /sql/sql_repl.h
parentd34950e8d2db7a28c92c5129edc63a11bba0792d (diff)
downloadmariadb-git-a6c58676835f9424a5167a522497f1a20a5f03ee.tar.gz
changed manager to use my_net_*
fixed bug in master - unregister slaves when they disconnect client/mysqlmanagerc.c: changed default port include/mysql.h: use my_net_* libmysql/manager.c: use my_net_* mysql-test/mysql-test-run.sh: added support for client strace sql/sql_parse.cc: unregister slaves on disconnect sql/sql_repl.cc: unregister slaves on disconnect sql/sql_repl.h: unregister slaves on disconnect tools/mysqlmanager.c: changed to use my_net_*
Diffstat (limited to 'sql/sql_repl.h')
-rw-r--r--sql/sql_repl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_repl.h b/sql/sql_repl.h
index 3445cd67b42..d6fafd31f21 100644
--- a/sql/sql_repl.h
+++ b/sql/sql_repl.h
@@ -10,6 +10,7 @@ typedef struct st_slave_info
char user[USERNAME_LENGTH+1];
char password[HASH_PASSWORD_LENGTH+1];
uint16 port;
+ THD* thd;
} SLAVE_INFO;
extern bool opt_show_slave_auth_info, opt_old_rpl_compat;
@@ -44,6 +45,7 @@ void reset_master();
void init_slave_list();
void end_slave_list();
int register_slave(THD* thd, uchar* packet, uint packet_length);
+void unregister_slave(THD* thd, bool only_mine, bool need_mutex);
int purge_master_logs(THD* thd, const char* to_log);
bool log_in_use(const char* log_name);
void adjust_linfo_offsets(my_off_t purge_offset);