• Konstantin Osipov's avatar
    Backport of the following revision from 6.0-codebase: · 3dd1d598
    Konstantin Osipov authored
    ----------------------------------------------------------
    revno: 2617.1.12
    committer: kostja@bodhi.(none)
    timestamp: Sun 2008-04-20 11:18:52 +0400
    message:
      A fix for Bug#32771 "events_bugs.test fails randomly".
      In Event_scheduler::stop(), which may be called from destructor,
      wait synchronously for the parallel Event_scheduler::stop() to
      complete before returning. This fixes a race between
      MySQL shutdown thread and the scheduler thread who could call
      stop() in parallel.
    3dd1d598
event_scheduler.cc 21 KB