1. 25 Jan, 2007 4 commits
    • unknown's avatar
      Merge moonlight.home:/home/tomash/src/mysql_ab/mysql-5.0-bug23527 · e76fde2f
      unknown authored
      into  moonlight.home:/home/tomash/src/mysql_ab/mysql-5.1-bug23527
      
      
      sql/sql_cache.cc:
        Auto merged
      e76fde2f
    • unknown's avatar
      BUG#23527: set global query_cache_size can crash the server under · ef013268
      unknown authored
                 high load
      
      MySQL server could crash if two or more threads would initiate query
      cache resize at the moments very close in time.
      
      The problem was introduced with the fix of bug 21051 in 5.0 and 5.1:
      simultaneous query cache resizes would wait for the first one in
      progress, but then each thread would try to finish the operation,
      accessing the data that was already reset (attempt to dereference
      'bins' pointer, which may be NULL already).
      
      The solution is to check after synchronization if another thread has
      done the reset already (test 'query_cache_size > 0' again).
      
      No test case is provided because the bug is a subject to a race.
      
      
      sql/sql_cache.cc:
        We release 'structure_guard_mutex' in flush_cache(), so after the
        call we check if another thread had reset the cache before us.
      ef013268
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1-runtime · 430cbe1d
      unknown authored
      into  mockturtle.local:/home/dlenev/src/mysql-5.1-merge
      
      
      430cbe1d
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.1 · d8eb51ae
      unknown authored
      into  mockturtle.local:/home/dlenev/src/mysql-5.1-merge
      
      
      sql/mysqld.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      d8eb51ae
  2. 24 Jan, 2007 31 commits
  3. 23 Jan, 2007 5 commits