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

Bug #48463 backporting from 6.0-rpl to celosia a set of bugs

The mentioned on the bug report set of bugs fixes have not be pushed to the main trees.

Fixed with extracting commits done to 6.0-rpl tree and applying them to the main 5.1.
Notes.
1. part of changes - the mtr's specific - were packported to the main 5.0 tree for mtr v1
   as http://lists.mysql.com/commits/46562
   However, there is no that fix anymore in the mtr v2. (This fact was mailed to mtr maintaining
   people).

2. Bug@36929  crash in kill_zombie_dump_threads-> THD::awake() with replication tests
   is not backported because the base code of the patch is libevent and that was removed
   from the main trees due to its instability.
This commit is contained in:
Andrei Elkin
2009-11-20 15:30:35 +02:00
parent 20e7e3a6b9
commit 3a76c32c05
9 changed files with 172 additions and 30 deletions

View File

@ -221,8 +221,14 @@ public:
int events_till_abort;
#endif
/* if not set, the value of other members of the structure are undefined */
bool inited;
/*
inited changes its value within LOCK_active_mi-guarded critical
sections at times of start_slave_threads() (0->1) and end_slave() (1->0).
Readers may not acquire the mutex while they realize potential concurrency
issue.
If not set, the value of other members of the structure are undefined.
*/
volatile bool inited;
volatile bool abort_slave;
volatile uint slave_running;