• monty@mysql.com's avatar
    More DBUG statements · 9e9ca8b6
    monty@mysql.com authored
    Replaced COND_refresh with COND_global_read_lock becasue of a bug in NTPL threads when using different mutexes as arguments to pthread_cond_wait()
    The original code caused a hang in FLUSH TABLES WITH READ LOCK in some circumstances because pthread_cond_broadcast() was not delivered to other threads.
    This fixes:
    Bug#16986: Deadlock condition with MyISAM tables
    Bug#20048: FLUSH TABLES WITH READ LOCK causes a deadlock
    9e9ca8b6
lock.cc 39 KB