Below is the list of changes that have just been commited into a local
3.23. repository of sasha. When sasha does a push, they will be
propogaged to the main repository and within 24 hours after the push into
the public repository. For information on how to access
the public repository see
http://www.mysql.com/doc/I/n/Installing_source_tree.html
ChangeSet@stripped, 2001-07-11 21:33:19-06:00, sasha@stripped
send kill signal to slave thread on shutdown
sql/slave.cc
1.108 01/07/11 21:33:18 sasha@stripped +10 -2
fixed bug in end_slave() - must send kill signal to slave thread
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: sasha
# Host: mysql.sashanet.com
# Root: /home/sasha/src/bk/mysql
--- 1.107/sql/slave.cc Wed Jul 11 19:29:14 2001
+++ 1.108/sql/slave.cc Wed Jul 11 21:33:18 2001
@@ -190,8 +190,16 @@
void end_slave()
{
pthread_mutex_lock(&LOCK_slave);
- while (slave_running)
- pthread_cond_wait(&COND_slave_stopped, &LOCK_slave);
+ if (slave_running)
+ {
+ abort_slave = 1;
+ thr_alarm_kill(slave_real_id);
+#ifdef SIGNAL_WITH_VIO_CLOSE
+ slave_thd->close_active_vio();
+#endif
+ while (slave_running)
+ pthread_cond_wait(&COND_slave_stopped, &LOCK_slave);
+ }
pthread_mutex_unlock(&LOCK_slave);
end_master_info(&glob_mi);
| Thread |
|---|
| • bk commit into 3.23 tree | sasha | 12 Jul |