• unknown's avatar
    Fix for a BUG#31649: events.test fails: NULL "state" field of · 47d17e5d
    unknown authored
    SHOW PROCESSLIST.
    
    The problem was a race condition: if the Event Scheduler was not
    quick enough, the following scenario happens:
      - The Event Scheduler picks up the created event;
      - The event is executed;
      - event_scheduler_thread->proc_info is set to NULL;
      - The client issues SELECT FROM I_S.
    
    The fix is to wait for the Event Scheduler to reach 'Waiting
    for next activation' state. 
    
    
    mysql-test/t/events.test:
      Wait for the Event Scheduler to start waiting for the activation.
    47d17e5d
events.test 25.9 KB