1. 18 May, 2011 2 commits
  2. 16 May, 2011 6 commits
  3. 14 May, 2011 2 commits
  4. 13 May, 2011 5 commits
    • Marc Alff's avatar
      Bug#12552516 LF_HASH REQUIRES MY_THREAD_INIT() · 4075c52b
      Marc Alff authored
      Before this fix, a thread instrumented for the performance schema,
      that would perform file io operations, could crash inside the LF_HASH
      implementation, in cases when my_thread_init is not called.
      
      The crash itself has not been reported in 5.5 but similar crashes have
      been found in 5.6-based development branches, using LF_HASH for
      more instrumentation.
      
      The possibility of a crash in 5.5 is confirmed by code analysis.
      
      The problem is that, when my_thread_init() is not called,
      which can happen for threads in storage engines or thirs party code,
      my_thread_var is NULL.
      
      Using my_thread_var->stacks_ends_here in mysys/lf_alloc-pin.c is unsafe.
      
      Given that my_thread_var is used:
      - only for stacks_ends_here
      - only on platform with HAVE_ALLOCA
      - only when there is enough room on the stack
      and given that the LF_HASH implementation has a fallback
      algorythm implemented already when using alloca is not possible,
      using my_thread_var->stacks_ends_here is in fact not a strict requirement,
      and can be relaxed.
      
      The fix is to:
      - test explicitly if my_thread_var is NULL, to account for cases
        when my_thread_init() is not used by the calling thread.
      - not use alloca in this case, and rely on the fall back code already in place.
        so that the LF_HASH can be supported even without my_thread_init().
      
      The implementation of mysys/lf_alloc-pin.c has been fixed to support this new usage.
      The units tests in unittest/mysys/lf-t.c have been adjusted accordingly.
      4075c52b
    • Bjorn Munch's avatar
      null upmerge · 0b9682a0
      Bjorn Munch authored
      0b9682a0
    • Bjorn Munch's avatar
      merge from 5.1-mtr · db4ed175
      Bjorn Munch authored
      db4ed175
    • Bjorn Munch's avatar
      merge from 5.5-mtr · 0fb541fb
      Bjorn Munch authored
      0fb541fb
    • MySQL Build Team's avatar
      changed the VERSION tag to 14 · 33b015f3
      MySQL Build Team authored
      33b015f3
  5. 12 May, 2011 14 commits
  6. 11 May, 2011 7 commits
    • Luis Soares's avatar
      BUG#12416700 · efc20dca
      Luis Soares authored
      Automerged bzr bundle from bug report into latest mysql-5.5.
      efc20dca
    • Magnus Blåudd's avatar
      Merge bug 12384993 · d8a9b36b
      Magnus Blåudd authored
      d8a9b36b
    • Alexander Nozdrin's avatar
      Ignore auto-generated files. · cbf455cf
      Alexander Nozdrin authored
      cbf455cf
    • Georgi Kodinov's avatar
      merge from mysql-5.5 · 621dc095
      Georgi Kodinov authored
      621dc095
    • MySQL Build Team's avatar
      Cloning of the 5.5.13 release from Mysql-5.5, · 94f42465
      MySQL Build Team authored
      increase the version number by two
      94f42465
    • Georgi Kodinov's avatar
      Bug #11744875: 4082: integer lengths cause truncation with distinct concat · a914a321
      Georgi Kodinov authored
      and innodb
      
      The 5.5 version of the patch.
      
      The server doesn't restrict the data that can be inserted into integer columns 
      with explicitly specified length that's smaller than what the type can handle,
      e.g. 1234 can be inserted into an INT(2) column just fine.
      Thus, when calcualting the maximum width of expressions involving such 
      restricted integer columns we need to use the implicit maximum width of 
      the field instead of the explicitly speficied one.
      Fixed the server to use the implicit maximum in such cases and made sure 
      the implicit maximum is addjusted the same way as the explicit one wrt
      signedness.
      
      Fixed several test case results (ctype_*.result, metadata.result and 
      type_ranges.result) to reflect the extended column widths.
      
      Added a regression test case in distinct.test.
      
      Note : this is the behavior preserving fix that makes 5.5 behave as 5.1 and 
      earlier. In the mysql trunk we'll add a insert time check for the explict 
      maximum size.
      a914a321
    • Magnus Blåudd's avatar
      Bug#12384993 EXTRA/RPL_TEST/CHECK_TYPE.INC NEED SUPPORT FOR SPECIFIC ENGINE · f8e86f50
      Magnus Blåudd authored
       - add support for choosing the engine of test
          table(t1) with $engine_type
       - add primary key to the test table(t1) to support
         replication of BLOB/TEXT (also with ENGINE=ndb)
       - change the suppression since the warning printed to error log
        now says "Column 1"
      f8e86f50
  7. 10 May, 2011 4 commits