• anozdrin/alik@station.'s avatar
    Fix for a BUG#31649: events.test fails: NULL "state" field of · 62d2ee93
    anozdrin/alik@station. 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. 
    62d2ee93
events.test 25.9 KB