1. 29 Nov, 2009 1 commit
    • Michael Widenius's avatar
      Remove compiler warnings (Including some warnings from -Wstrict-aliasing) · d13c5435
      Michael Widenius authored
      Don't use static link by default (in compile-pentium) as some new systems doesn't have all static libraries available
      Change type for functions in plugin.h:str_mysql_ftparser_param() to const unsigned char and string lengths to size_t.
      One effect of the above change is that one needs to include mysql_global.h or define size_t before including plugin.h
      This fixes a case where mysql_client_test failed with newer gcc that enables strict-aliasing by default
      
      
      BUILD/compile-pentium:
        Don't use static link by default as some new systems doesn't have all static libraries available
      client/mysql_upgrade.c:
        Remove not used variable
      cmd-line-utils/readline/config_readline.h:
        Define some constants to get rid of compiler warnings on Linux
      cmd-line-utils/readline/display.c:
        Get rid of compiler warnings
      cmd-line-utils/readline/history.c:
        Got rid of compiler warnings:
        - Defining some strings as const
        - Added cast
      cmd-line-utils/readline/rlmbutil.h:
        Added cast to get rid of compiler warnings
      cmd-line-utils/readline/text.c:
        Remove not needed initialization to get rid of compiler warnings
      cmd-line-utils/readline/xmalloc.c:
        Changed types to 'const char* to get rid of compiler warnings
      configure.in:
        Ensure that we use MariaDB as suffix
      include/mysql/plugin.h:
        Changed types to 'const unsigned char* to get rid of compiler warnings (in other parts of the code)
        Change length for not \0 terminated string to size_t
      include/mysql/plugin.h.pp:
        Update related to plugin.h
      libmysql/libmysql.c:
        Fixed bug that caused core dump with newer gcc when strict aliasing is not turned off
      mysql-test/t/information_schema.test:
        Test is depending on innodb
      mysql-test/t/not_partition.test:
        Fixed wrong directory name
        (Not noticed before as we don't ususally run this test)
      mysys/lf_hash.c:
        Got rid of compiler warnings from -Wstrict-aliasing
      mysys/my_redel.c:
        Removed not used variable
      regex/engine.c:
        Changed types to 'const char* to get rid of compiler warnings
      regex/engine.ih:
        Changed types to 'const char* to get rid of compiler warnings
      sql/sp_head.cc:
        Got rid of compiler warning from -Wstrict-aliasing
      sql/sql_base.cc:
        Got rid of compiler warnings from -Wstrict-aliasing
        (The original code was probably wrong as nj_col->table_field was
      sql/sql_builtin.cc.in:
        plugin.h needs to have size_t defined
      sql/sql_parse.cc:
        Remove used variable
      sql/sql_select.cc:
        Got rid of compiler warnings from -Wstrict-aliasing
      sql/sql_show.cc:
        Added #ifdef to get rid of compiler warning when not using partition engine
      sql/table.cc:
        Got rid of compiler warning from -Wstrict-aliasing
      storage/maria/ha_maria.cc:
        Got rid of compiler warnings from -Wstrict-aliasing:
        - Use the thd_killed() API function
      storage/maria/lockman.c:
        Got rid of compiler warnings from -Wstrict-aliasing
      storage/maria/ma_check.c:
        Got rid of compiler warnings from -Wstrict-aliasing
        Change to use new version of _ma_killed_ptr; Don't call it as often as before
      storage/maria/ma_check_standalone.h:
        Update to compatible _ma_killed_ptr() from ha_maria.cc
      storage/maria/ma_ft_boolean_search.c:
        Changed pointers from char -> const char* and length to size_t (to get rid of compiler warnings and casts)
      storage/maria/ma_ft_nlq_search.c:
        Got rid of compiler warnings from -Wstrict-aliasing
        Ensure that 'subkeys' is 32 bit
      storage/maria/ma_ft_parser.c:
        Changed pointers from char -> const char* and length to size_t (to get rid of compiler warnings and casts)
      storage/maria/ma_ftdefs.h:
        Changed pointers from char -> const char* and length to size_t (to get rid of compiler warnings and casts)
      storage/maria/ma_sort.c:
        Change to use new version of _ma_killed_ptr; Don't call it as often as before
      storage/maria/ma_state.c:
        Got rid of compiler warnings from -Wstrict-aliasing
      storage/maria/maria_def.h:
        Redefine ma_killed_ptr()
      storage/maria/maria_ftdump.c:
        Got rid of compiler warnings from -Wstrict-aliasing
      storage/maria/trnman.c:
        Got rid of compiler warnings from -Wstrict-aliasing
      storage/myisam/ft_boolean_search.c:
        Changed pointers from char -> const char* and length to size_t (to get rid of compiler warnings and casts)
      storage/myisam/ft_nlq_search.c:
        Got rid of compiler warnings from -Wstrict-aliasing
      storage/myisam/ft_parser.c:
        Changed pointers from char -> const char* and length to size_t (to get rid of compiler warnings and casts)
      storage/myisam/ft_stopwords.c:
        Changed pointers from char -> const char* and length to size_t (to get rid of compiler warnings and casts)
      storage/myisam/ftdefs.h:
        Changed pointers from char -> const char* and length to size_t (to get rid of compiler warnings and casts)
      storage/myisam/ha_myisam.cc:
        Got rid of compiler warnings from -Wstrict-aliasing:
        - Use the thd_killed() API function
      storage/myisam/mi_check.c:
        Use new killed_ptr() function
      storage/myisam/myisam_ftdump.c:
        Got rid of compiler warnings from -Wstrict-aliasing
      storage/myisam/myisamchk.c:
        Update to compatible killed_ptr() from ha_myisam.cc
      storage/myisam/myisamdef.h:
        Redefine killed_ptr()
      storage/myisam/myisamlog.c:
        Got rid of compiler warnings from -Wstrict-aliasing
      storage/myisam/sort.c:
        Change to use new version of killed_ptr; Don't call it as often as before
      storage/xtradb/fil/fil0fil.c:
        Fixedc ompiler warning
      storage/xtradb/trx/trx0i_s.c:
        Include mysql_plugin.h later to ensure that size_t is defined
      d13c5435
  2. 26 Nov, 2009 2 commits
  3. 25 Nov, 2009 2 commits
  4. 16 Nov, 2009 1 commit
    • Michael Widenius's avatar
      Safety change to ensure read/black trees (used with heap tables) works on 64... · 815b9fed
      Michael Widenius authored
      Safety change to ensure read/black trees (used with heap tables) works on 64 bit setups where ulong <> size_t
      Don't retry test cases by default
      Fixed bug where we could (under unlikely error conditions) access not initialized variable
      
      include/my_tree.h:
        Safety change to ensure read/black trees (used with heap tables) works on 64 bit setups where ulong <> size_t
        (Pointed out by Bryan Aker)
      mysql-test/mysql-test-run.pl:
        Don't retry test cases by default
        This makes it too easy to miss failures and we have anyway to fix race conditions, not ignore them.
      mysys/tree.c:
        Safety change to ensure read/black trees (used with heap tables) works on 64 bit setups where ulong <> size_t
      sql/sql_delete.cc:
        Fixed bug where we could (under unlikely error conditions) access not initialized variable.
        (Pointed out by Bryan Aker)
      815b9fed
  5. 14 Nov, 2009 3 commits
  6. 13 Nov, 2009 3 commits
  7. 11 Nov, 2009 2 commits
  8. 10 Nov, 2009 2 commits
  9. 07 Nov, 2009 3 commits
  10. 06 Nov, 2009 2 commits
  11. 05 Nov, 2009 1 commit
  12. 03 Nov, 2009 2 commits
  13. 02 Nov, 2009 2 commits
  14. 01 Nov, 2009 3 commits
  15. 31 Oct, 2009 2 commits
  16. 30 Oct, 2009 5 commits
  17. 29 Oct, 2009 2 commits
    • Sergey Petrunya's avatar
      MWL#17: Table elimination · 1d135003
      Sergey Petrunya authored
      - add debug tests (were accidentally not pushed with the bulk of WL)
      
      1d135003
    • Michael Widenius's avatar
      Compile by default MySQL clients with libmysqldclient.a (not .so) · 664fa25e
      Michael Widenius authored
      This makes them suitable for tar archices right away and also are easier to copy
      Don't disable federated storage engine by default.
      Don't allow one to disable the Maria storage engine if it's used for temp tables
      
      BUILD/SETUP.sh:
        Compile by default MySQL clients with libmysqldclient.a (not .so)
        This makes them suitable for tar archices right away and also are easier to copy
      scripts/make_binary_distribution.sh:
        Abort it clients are compiled with the shared libmysqlclient.so library
      sql/mysqld.cc:
        Don't call kill_mysql() if signal handler is not setup (causes a core dump).
        This is only relevant when starting with --gdb.
      sql/sql_plugin.cc:
        Don't disable federated storage engine by default.
        Don't allow one to disable the Maria storage engine if it's used for temp tables
      664fa25e
  18. 28 Oct, 2009 2 commits