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

fixed race condition in automatic binlog rotation

remove extension from binary log if the user specifies one to avoid
    non-rotatable logs
fixed possible use of unitialized IO_CACHE in debug mode
This commit is contained in:
sasha@mysql.sashanet.com
2001-07-11 19:29:23 -06:00
parent b6273bfce0
commit 21a8aaa29d
5 changed files with 27 additions and 10 deletions

View File

@ -189,6 +189,11 @@ static void free_string_array(DYNAMIC_ARRAY *a)
void end_slave()
{
pthread_mutex_lock(&LOCK_slave);
while (slave_running)
pthread_cond_wait(&COND_slave_stopped, &LOCK_slave);
pthread_mutex_unlock(&LOCK_slave);
end_master_info(&glob_mi);
if(do_table_inited)
hash_free(&replicate_do_table);