1. 16 May, 2011 6 commits
  2. 14 May, 2011 2 commits
  3. 13 May, 2011 5 commits
    • Marc Alff's avatar
      Bug#12552516 LF_HASH REQUIRES MY_THREAD_INIT() · 7ed4bbba
      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.
      7ed4bbba
    • Bjorn Munch's avatar
      null upmerge · f70f32c1
      Bjorn Munch authored
      f70f32c1
    • Bjorn Munch's avatar
      merge from 5.1-mtr · 632d7e63
      Bjorn Munch authored
      632d7e63
    • Bjorn Munch's avatar
      merge from 5.5-mtr · 3c32bf93
      Bjorn Munch authored
      3c32bf93
    • MySQL Build Team's avatar
      changed the VERSION tag to 14 · 7a7b4898
      MySQL Build Team authored
      7a7b4898
  4. 12 May, 2011 14 commits
  5. 11 May, 2011 7 commits
    • Luis Soares's avatar
      BUG#12416700 · e2a135b0
      Luis Soares authored
      Automerged bzr bundle from bug report into latest mysql-5.5.
      e2a135b0
    • Magnus Blåudd's avatar
      Merge bug 12384993 · afdc90f4
      Magnus Blåudd authored
      afdc90f4
    • Alexander Nozdrin's avatar
      Ignore auto-generated files. · 95158d99
      Alexander Nozdrin authored
      95158d99
    • Georgi Kodinov's avatar
      merge from mysql-5.5 · c2606c8a
      Georgi Kodinov authored
      c2606c8a
    • MySQL Build Team's avatar
      Cloning of the 5.5.13 release from Mysql-5.5, · 1b413e45
      MySQL Build Team authored
      increase the version number by two
      1b413e45
    • Georgi Kodinov's avatar
      Bug #11744875: 4082: integer lengths cause truncation with distinct concat · b5ef16eb
      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.
      b5ef16eb
    • Magnus Blåudd's avatar
      Bug#12384993 EXTRA/RPL_TEST/CHECK_TYPE.INC NEED SUPPORT FOR SPECIFIC ENGINE · b3bb31c9
      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"
      b3bb31c9
  6. 10 May, 2011 4 commits
  7. 09 May, 2011 2 commits