1. 10 Dec, 2009 5 commits
  2. 09 Dec, 2009 2 commits
  3. 08 Dec, 2009 4 commits
    • Magne Mahre's avatar
      Bug#35589 SET PASSWORD caused a crash · c24ef7e9
      Magne Mahre authored
      Bug#35591 FLUSH PRIVILEGES caused a crash
      
      A race condition on the privilege hash tables (proc_priv_hash
      and func_priv_hash) caused one thread to try to delete elements
      that had already been deleted by another thread.
      
      The bug was caused by reading and saving the pointers to 
      the hash tables outside mutex protection.  This led to an
      inconsistency where a thread copied a pointer to a hash,
      another thread did the same, the first thread then deleted
      the hash, and the second then crashed when it in turn tried to
      delete the deleted hash.
      
      The fix is to ensure that operations on the shared hash structures
      happens under mutex protection (moving the locking up a little)
      
      c24ef7e9
    • V Narayanan's avatar
      merging with mysql-next-mr-svoj · 1e224eb2
      V Narayanan authored
      1e224eb2
    • V Narayanan's avatar
      merging with mysql-next-mr-svoj · 44a3c5cb
      V Narayanan authored
      44a3c5cb
    • Alexander Nozdrin's avatar
      Auto-merge from mysql-next-mr. · fd433cfb
      Alexander Nozdrin authored
      fd433cfb
  4. 07 Dec, 2009 4 commits
  5. 05 Dec, 2009 3 commits
  6. 04 Dec, 2009 9 commits
  7. 03 Dec, 2009 6 commits
  8. 02 Dec, 2009 6 commits
  9. 01 Dec, 2009 1 commit
    • Evgeny Potemkin's avatar
      Bug#33546: Slowdown on re-evaluation of constant expressions. · 9f7d2458
      Evgeny Potemkin authored
            
      Constant expressions in WHERE/HAVING/ON clauses aren't cached and evaluated
      for each row. This causes slowdown of query execution especially if constant
      UDF/SP function are used.
            
      Now WHERE/HAVING/ON expressions are analyzed in the top-bottom direction with
      help of the compile function. When analyzer meets a constant item it
      sets a flag for the tree transformer to cache the item and doesn't allow tree
      walker to go deeper. Thus, the topmost item of a constant expression if
      cached. This is done after all other optimizations were applied to
      WHERE/HAVING/ON expressions
            
      A helper function called cache_const_exprs is added to the JOIN class.
      It calls compile method with caching analyzer and transformer on WHERE,
      HAVING, ON expressions if they're present.
      The cache_const_expr_analyzer and cache_const_expr_transformer functions are
      added to the Item class. The first one check if the item can be cached and
      the second caches it if so.
      A new Item_cache_datetime class is derived from the Item_cache class.
      It caches both int and string values of the underlying item independently to
      avoid DATETIME aware int-to-string conversion. Thus it completely relies on
      the ability of the underlying item to correctly convert DATETIME value from
      int to string and vice versa.
      9f7d2458