1. 28 Apr, 2005 5 commits
    • unknown's avatar
      Bug#8321 - myisampack bug in compression algorithm · 6aab4f49
      unknown authored
      Merge from 4.0.
      
      6aab4f49
    • unknown's avatar
      Bug#8321 - myisampack bug in compression algorithm · 0cb74803
      unknown authored
      This is the second of three changesets. It contains the pure bug fix.
      It also contains the second after-review fixes.
      The problem was that with gcc on x86, shifts are done modulo word size. 
      'value' is 32 bits wide and shifting it by 32 bits is a no-op.
      This was triggered by an evil distribution of character incidences. 
      A distribution of 2917027827 characters made of 202 distinct values led to
      34 occurrences of 32-bit Huffman codes.
      This might have been the first time ever that write_bits() had to write
      32-bit values. Since it can be expected that one day even 32 bits might
      be insufficient, the third changeset suggests to enlarge some variables
      to 64 bits.
      
      0cb74803
    • unknown's avatar
      After review fixes to check-cpu · d46255b1
      unknown authored
      
      BUILD/check-cpu:
        Remove the exit 0 from check-cpu
      d46255b1
    • unknown's avatar
      Merge neptunus.(none):/home/msvensson/mysql/bug9911 · 784b14ba
      unknown authored
      into neptunus.(none):/home/msvensson/mysql/mysql-4.1
      
      784b14ba
    • unknown's avatar
      BUG#9911 After review fixes · d8220f56
      unknown authored
       - Remove ha_archive::rename_table and move the fix to handler::rename_table
      
      
      sql/examples/ha_archive.cc:
        Remove ha_archive::rename_table
      sql/examples/ha_archive.h:
        Remove ha_archive::rename_table
      sql/handler.cc:
        Fix handler::rename_table so it does not care about if the file to rename is missing
      d8220f56
  2. 27 Apr, 2005 16 commits
  3. 26 Apr, 2005 9 commits
    • unknown's avatar
      dict0dict.c, dict0dict.h, fil0fil.c: · 3dfef87e
      unknown authored
        Fix a problem in crash recovery of .ibd files on Windows if the user used lower_case_table_names=0 or 2; the directory scan in crash recovery forgot to put all paths to lower case, so that the tablespace name would be consistent with the internal data dictionary of InnoDB; remember that InnoDB puts internally all database names and table names to lower case on Windows, regardless of the value of lower_case_table_names
      
      
      innobase/fil/fil0fil.c:
        Fix a problem in crash recovery of .ibd files on Windows if the user used lower_case_table_names=0 or 2; the directory scan in crash recovery forgot to put all paths to lower case, so that the tablespace name would be consistent with the internal data dictionary of InnoDB; remember that InnoDB puts internally all database names and table names to lower case on Windows, regardless of the value of lower_case_table_names
      innobase/include/dict0dict.h:
        Fix a problem in crash recovery of .ibd files on Windows if the user used lower_case_table_names=0 or 2; the directory scan in crash recovery forgot to put all paths to lower case, so that the tablespace name would be consistent with the internal data dictionary of InnoDB; remember that InnoDB puts internally all database names and table names to lower case on Windows, regardless of the value of lower_case_table_names
      innobase/dict/dict0dict.c:
        Fix a problem in crash recovery of .ibd files on Windows if the user used lower_case_table_names=0 or 2; the directory scan in crash recovery forgot to put all paths to lower case, so that the tablespace name would be consistent with the internal data dictionary of InnoDB; remember that InnoDB puts internally all database names and table names to lower case on Windows, regardless of the value of lower_case_table_names
      3dfef87e
    • unknown's avatar
      Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-4.1 · 095e28a4
      unknown authored
      into mysql.com:/M41/mysql-4.1
      
      
      acinclude.m4:
        Auto merged
      configure.in:
        Auto merged
      095e28a4
    • unknown's avatar
      4abc63e2
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-4.1 · d26b09fe
      unknown authored
      into mysql.com:/home/jimw/my/mysql-4.1-clean
      
      d26b09fe
    • unknown's avatar
      Fix typo in include file name (Bug #9063) · d8512131
      unknown authored
      
      acinclude.m4:
        Fix typo
      d8512131
    • unknown's avatar
      checking that statements get into binlog even when they were affecting · 8e439dfb
      unknown authored
      no rows of the blackhold engine (for this engine to be a binlog propagator).
      NOTE: blackhole.test currently hangs in 5.0 BUG#10175 so I'll merge without running this test; the
      person who fixes the hang will correct the merged blackhole.result or ask me to).
      
      
      mysql-test/r/blackhole.result:
        result update
      mysql-test/t/blackhole.test:
        checking that statements get into binlog even when they were affecting
        no rows of the blackhold engine. So that this engine can serve as
        a binlog propagator (A->B->C replication where B has only blackhole tables,
        B receives binlog from A, applies it to blackhole tables, writes statements
        to its binlog which it sends to C; both A and C have non-blackhole tables). B is just a proxy.
      8e439dfb
    • unknown's avatar
      Final fix for NPTL configuration (bug#2173, bug#5871, and bug#9497). · abec18a1
      unknown authored
      
      include/my_global.h:
        As we have a new CPP symbol, this should be "undef"ed explicitly.
      abec18a1
    • unknown's avatar
      BUG#9911 RENAME TABLE of type ARCHIVE fails with .ARN file error · 6afb3ef4
      unknown authored
       - Implemented ha_archive::rename_table
       - Added testcases for rename
      
      
      mysql-test/r/archive.result:
        Addd testcase for rename of archive table
      mysql-test/t/archive.test:
        Addd testcase for rename of archive table
      sql/examples/ha_archive.cc:
        Implement special version of rename table that does not care it the .arn file is missing
      sql/examples/ha_archive.h:
        Implement special version of rename table that does not care it the .arn file is missing
      6afb3ef4
    • unknown's avatar
      Fix compile issues in Intel C/C++ compiler (Bug #9063) · c4a4be84
      unknown authored
      
      acinclude.m4:
        Use AC_LANG_PUSH/POP instead of _SAVE/RESTORE
        Add test to get type of 'struct rlimit'
        Switch order of including stdlib.h and declaration being tested to
        match how it will be used in regular code.
      configure.in:
        Call MYSQL_TYPE_STRUCT_RLIMIT macro
      sql/mysqld.cc:
        Use STRUCT_RLIMIT for getting type of struct rlimit.
      c4a4be84
  4. 25 Apr, 2005 6 commits
  5. 24 Apr, 2005 1 commit
  6. 23 Apr, 2005 1 commit
    • unknown's avatar
      ndb - bug#10029 fix · 07b54bc2
      unknown authored
      
      ndb/include/kernel/signaldata/TuxMaint.hpp:
        handle multipl index update failure atomically
      ndb/src/kernel/blocks/dbtup/Dbtup.hpp:
        handle multipl index update failure atomically
      ndb/src/kernel/blocks/dbtup/DbtupTrigger.cpp:
        handle multipl index update failure atomically
      ndb/src/kernel/blocks/dbtup/Notes.txt:
        handle multipl index update failure atomically
      ndb/src/kernel/blocks/dbtux/DbtuxNode.cpp:
        handle multipl index update failure atomically
      ndb/src/ndbapi/ndberror.c:
        handle multipl index update failure atomically
      ndb/test/ndbapi/testOIBasic.cpp:
        handle multipl index update failure atomically
      07b54bc2
  7. 22 Apr, 2005 2 commits
    • unknown's avatar
      Step 3 of the switch to support configuration with NPTL: · eab2f10a
      unknown authored
      Change "configure.in".
      
      The branches for Tru64 (ex: OSF/1) and Linux are separated,
      and for Linux 'getconf GNU_LIBPTHREAD_VERSION' is used to tell between Linuxthreads and NPTL.
      
      
      configure.in:
        Step 3 of the switch to support configuration with NPTL:
        Change "configure.in".
        
        1) Separate the branches checking for thread libraries on OSF/1 (now: Tru64) and on Linux,
           as these are different things. In the Tru64 branch, remove the obsolete part for OSF/1 3.2,
           because that is gone since long (about a decade?); we are at 5 now. Adapt the comment.
        
        2) For Linux, the thread libraries are "Linuxthreads" (older) and "NPTL" (newer).
           Until now, we cared only about "Linuxthreads", and we did so by checking a comment in 
           the header file '/usr/include/pthread.h'.
           With NPTL as an alternative or only thread package, this is not secure any more,
           there are distributions where the header file still contains that comment but the lib is NPTL.
           For all current distributions, the way to check is the 'getconf' command.
        
           On old distributions, 'getconf' exists but does not understand the 'GNU_LIBPTHREAD_VERSION'
           parameter. It is unlikely that such an old system should have NPTL, so the header file check is
           sufficient if the getconf inquiry fails.
        
           For both Linuxthreads and NPTL, '-lpthread' is the linker option to use.
        
        3) To detect problems as early as possible, on Linux a link test using '-lpthread' is done.
           The code is copied from a later check where the thread functions are searched in '-lc',
           '-lpthread', and '-lpthreads', but this later search would not be executed after the lib
           was already determined. So if the test is not done here, it will be detected only during
           the real build. This is too late.
      eab2f10a
    • unknown's avatar
      Merge mskold@bk-internal.mysql.com:/home/bk/mysql-4.1 · db4f21c1
      unknown authored
      into mysql.com:/usr/local/home/marty/MySQL/mysql-4.1
      
      db4f21c1