• unknown's avatar
    Final patch for BUG#4285. · 8e1e1e73
    unknown authored
    This patch collects all previous patches into one.
    
    The main problem was due to that there is are two variables -
    dflt_key_cache and sql_key_cache with have more or less duplicate
    function. The reson for the bug was that the default value in the key
    cache hash was set to dflt_key_cache, then sql_key_cache was set to a
    new key cache object, and then dflt_key_cache was set to sql_key_cache
    which was different from the dflt_key_cache_var. After sending SIGHUP,
    the server was using the original default value for the key cache hash,
    which was different from the actual key cache object used for the
    default key cache.
    
    
    include/keycache.h:
      Import patch 4285.diff
    mysys/mf_keycache.c:
      Import patch 4285.diff
    sql/mysql_priv.h:
      Import patch 4285.diff
    sql/mysqld.cc:
      Import patch 4285.diff
    sql/set_var.cc:
      Import patch 4285.diff
    sql/sql_parse.cc:
      Import patch 4285.diff
    sql/sql_show.cc:
      Import patch 4285.diff
    8e1e1e73
keycache.h 6.62 KB