• sergefp@mysql.com's avatar
    Fix for BUG#12228: SP cache code: · c6db76b0
    sergefp@mysql.com authored
    * Cleanup SP Cache code, now SP Cache only deletes sp_head objects in 
      sp_cache_flush_obsolete() invalidates all pointers to routines in the cache.
    * Use new SP Cache use contract in the code.
    
    There is no test case because it doesn't seem to be possible to cause thread races to end
    the same way they end in heavy-load test. This patch removes the crash in heavy test.
    c6db76b0
sql_prepare.cc 69.1 KB