• Davi Arnaut's avatar
    Bug#11766349 - 59443: query_cache_debug.test is occasionally very slow · c7d2ec7d
    Davi Arnaut authored
    The test case problem stemmed from the fact that a debug sync
    signal is a global variable that persists until overwritten
    by a new signal. This means that if two different signals
    are raised in sequence, a thread waiting for the first signal
    might miss it if the second signal sets the global variable
    before the thread wakes up.
    
    The solution is to deliver a subsequent signal only after the
    waiting thread has received it.
    
    mysql-test/t/query_cache_debug.test:
      Wait for signal to be delivered.
    c7d2ec7d
query_cache_debug.result 8.67 KB