1. 26 Apr, 2005 2 commits
  2. 22 Apr, 2005 1 commit
    • unknown's avatar
      Step 3 of the switch to support configuration with NPTL: · 8a9c9881
      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.
      8a9c9881
  3. 20 Apr, 2005 8 commits
    • unknown's avatar
      Step 2 of the switch to support configuration with NPTL: · b6a4a2f4
      unknown authored
      Define a new CPP symbol that the target OS is Linux, and use it where only the OS matters and not the threads Library.
      Until now, 'HAVE_LINUXTHREADS' was used to indicate "Target is Linux" in many places.
      When we support configuration with NPTL but no Linuxthreads, this misuse must cease.
      
      
      configure.in:
        Step 2 of the switch to support configuration with NPTL:
        Define a new CPP symbol that the target OS is Linux.
        Until now, 'HAVE_LINUXTHREADS' was used to indicate "Target is Linux" in many places.
        When we support configuration with NPTL but no Linuxthreads, this misuse must cease.
      include/my_global.h:
        Step 2 of the switch to support configuration with NPTL:
        Use the new 'TARGET_OS_LINUX' where only the OS matters and not the threads Library.
      mysys/thr_mutex.c:
        Step 2 of the switch to support configuration with NPTL:
        Use the new 'TARGET_OS_LINUX' where only the OS matters and not the threads Library.
      sql/stacktrace.c:
        Step 2 of the switch to support configuration with NPTL:
        Use the new 'TARGET_OS_LINUX' where only the OS matters and not the threads Library.
      sql/stacktrace.h:
        Step 2 of the switch to support configuration with NPTL:
        Use the new 'TARGET_OS_LINUX' where only the OS matters and not the threads Library.
      tools/mysqlmanager.c:
        Step 2 of the switch to support configuration with NPTL:
        Use the new 'TARGET_OS_LINUX' where only the OS matters and not the threads Library.
      b6a4a2f4
    • unknown's avatar
      Step 1 of the switch to support configuration with NPTL: · 677fbc7d
      unknown authored
      Rename 'IS_LINUX' configuration variable to 'TARGET_LINUX'.
      
      
      677fbc7d
    • unknown's avatar
      ndb - dbug aid for api signal log · 90de09db
      unknown authored
      
      ndb/src/ndbapi/TransporterFacade.cpp:
        dbug aid for api signal log
      90de09db
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-4.1 · acfca425
      unknown authored
      into mysql.com:/home/mydev/mysql-4.1-bug7806
      
      
      acfca425
    • unknown's avatar
      Merge mysql.com:/home/mydev/mysql-4.1 · 1d530cd4
      unknown authored
      into mysql.com:/home/mydev/mysql-4.1-bug7806
      
      
      1d530cd4
    • unknown's avatar
      After review fix · c276d11b
      unknown authored
      
      cmd-line-utils/readline/config_readline.h:
        Fixing code formatting
      c276d11b
    • unknown's avatar
      Merge · 56a91d2d
      unknown authored
      56a91d2d
    • unknown's avatar
      Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.1 · ccd4e77b
      unknown authored
      into mysql.com:/home/psergey/mysql-4.1-bug9103
      
      
      ccd4e77b
  4. 19 Apr, 2005 5 commits
    • unknown's avatar
      Bug#7806 - insert on duplicate key and auto-update of timestamp · 3be2d489
      unknown authored
      Modified the check for the timestamp field so that the flags for
      the automatic for inserts and updates are cleared independently.
      
      
      mysql-test/r/type_timestamp.result:
        Bug#7806 - insert on duplicate key and auto-update of timestamp
        The test result.
      mysql-test/t/type_timestamp.test:
        Bug#7806 - insert on duplicate key and auto-update of timestamp
        The test case.
      sql/mysql_priv.h:
        Bug#7806 - insert on duplicate key and auto-update of timestamp
        Made check_insert_fields() static. It is used only in sql_insert.cc.
      sql/sql_insert.cc:
        Bug#7806 - insert on duplicate key and auto-update of timestamp
        Modified the check of the insert fields so that an explicit
        assignment of the timestamp field does only disable the automatic
        for inserts and retains the automatic for updates.
        Added a check if the update fields contain the timestamp field.
        In this case, the automatic on update is disabled, but not the
        automatic on insert. This is called from mysql_prepare_insert().
      sql/table.h:
        Bug#7806 - insert on duplicate key and auto-update of timestamp
        Extended a comment to warn about usage of enum timestamp_auto_set_type.
      3be2d489
    • unknown's avatar
      BUG#9568 mysql segfaults from CTRL-R · 7b1c0231
      unknown authored
       - Segfault because of passing a 64-bit pointer to 32 bit integer.
       - Add new include  config_readline.h which will calculate some new defines 
         based on what is found in config.h
       - This file was originally included in readline 4.3 as config.h.in, only the part that
          makes new defines have been moved to this file. 
      
      
      cmd-line-utils/readline/bind.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/callback.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/complete.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/display.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/funmap.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/histexpand.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/histfile.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/history.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/histsearch.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/input.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/isearch.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/keymaps.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/kill.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/macro.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/mbutil.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/misc.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/nls.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/parens.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/readline.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/rltty.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/search.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/shell.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/signals.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/terminal.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/text.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/tilde.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/undo.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/util.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/vi_mode.c:
        Include local config_readline.h instead of config.h
      cmd-line-utils/readline/xmalloc.c:
        Include local config_readline.h instead of config.h
      7b1c0231
    • unknown's avatar
      Merge jlindstrom@bk-internal.mysql.com:/home/bk/mysql-4.1 · 254dfb2b
      unknown authored
      into hundin.mysql.fi:/home/jan/mysql-4.1
      
      
      254dfb2b
    • unknown's avatar
      CSC5149 - ndb test programs · 92a00143
      unknown authored
        Fix src distributions for benchmark prg
      
      
      92a00143
    • unknown's avatar
      992d2305
  5. 18 Apr, 2005 4 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 24dd3ea8
      unknown authored
      into mysql.com:/home/dlenev/src/mysql-4.1-bg8086
      
      
      24dd3ea8
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.1 · 4594ea1f
      unknown authored
      into mysql.com:/home/dlenev/src/mysql-4.1-bg8086
      
      
      4594ea1f
    • unknown's avatar
      Fixed a bug: deadlock without any locking, simple select and update (Bug #7975). · 56ea7702
      unknown authored
      Backported from 5.0.3.
      
      
      innobase/row/row0ins.c:
        If the SQL-query will update or replace duplicate records we take X-lock
        for duplicate records.
      sql/ha_innodb.cc:
        INSERT ON DUPLICATE KEY UPDATE will also update duplicate records and we should
        take X-lock in this case for duplicate records.
      56ea7702
    • unknown's avatar
      Fix for BUG#9103: · 955ec71f
      unknown authored
      Don't produce data truncation warnings from within cp_buffer_from_ref(). This function
      is only used to make index search tuples and data truncation that occurs here has no
      relation with truncated values being saved into tables.
      
      
      mysql-test/r/update.result:
        Testcase for BUG#9103
      mysql-test/t/update.test:
        Testcase for BUG#9103
      sql/opt_range.cc:
        cp_buffer_from_ref now has THD* parameter
      sql/sql_select.h:
        cp_buffer_from_ref now has THD* parameter
      955ec71f
  6. 17 Apr, 2005 3 commits
  7. 16 Apr, 2005 9 commits
  8. 15 Apr, 2005 8 commits