• kostja@vajra.(none)'s avatar
    An attempt to fix a sporadic valgrind memory leak in Event Scheduler: · eccd5ae2
    kostja@vajra.(none) authored
    streamline the event worker thread work flow and try to eliminate
    possibilities for memory corruptions that might have been
    lurking in previous (complicated) code.
    This patch: 
     * removes Event_job_data::compile that was never used
     * cleans up Event_job_data::execute to minimize juggling with
       thread context and eliminate unneded code paths
     * Implements Security_context::change/restore_security_context
       to be able to re-use these methods in all stored programs
    This is to maybe fix Bug#27733 "Valgrind failures in 
    remove_table_from_cache".
    Review comments applied.
    eccd5ae2
sql_trigger.cc 51.7 KB