1. 29 Nov, 2015 1 commit
    • Monty's avatar
      Fixes to get all test to run on MacosX Lion 10.7 · c3018b0f
      Monty authored
      This includes fixing all utilities to not have any memory leaks,
      as safemalloc warnings stopped tests from passing on MacOSX.
      
      - Ensure that all clients takes character-set-dir, as the
        libmysqlclient library will use it.
      - mysql-test-run now passes character-set-dir to all external clients.
      - Changed dynstr_free() so that it can be called twice (made freeing code easier)
      - Changed rpl_global_gtid_slave_state to be allocated dynamicly as it
        includes a mutex that needs to be initizlied/destroyed before my_end() is called.
      - Removed rpl_slave_state::init() and rpl_slave_stage::deinit() as
        their job are better handling by constructor and delete.
      - Print alias instead of table_name in check_duplicate_key as
        table_name may have been converted to lower case.
      
      Other things:
      - Fixed a case in time_to_datetime_with_warn() where we where
        using && instead of & in tests
      c3018b0f
  2. 27 Nov, 2015 1 commit
    • Monty's avatar
      Fixed problems found by buildbot: · 654547b5
      Monty authored
      - Better error from check_slave_param
      - Better error message from TokuDB if it can't be compiled.
      - Marked rpl_mixed_drop_create_temp_table and
        rpl_stm_drop_create_temp_table as big tests to stop timeout
        failures on power8
      - Added sync_slave_with_master to semisync_future-7591 to
        ensure that slave is up to date with master before calling
        rpl_end.
      - Disabled compiler warnings from connect and mroonga and on
        MacOSX.
      
      Mroonga:
      - Fixed bug when testing if file is a normal file that can be deleted
      - Marked a lot of date and datetime test to not run on macosx.
        This is because mktime() can't handle negative years and this
        restricts mroonga so that it can only store dates after the year 1900.
      654547b5
  3. 25 Nov, 2015 1 commit
  4. 24 Nov, 2015 1 commit
    • Monty's avatar
      Fixed failing test cases and compiler warnings found by buildbot · f813a000
      Monty authored
      - Added some extra command to rpl_start_stop to ensure that the
        IO thread has connected to the master before we shut down the server.
      - if signal returns signalhandler_t, use this with the alarm code
      - Added missing tests to sys_vars
      - Fixed some possible overflow bugs in tabxml.cpp
      f813a000
  5. 23 Nov, 2015 2 commits
    • Monty's avatar
      Fixed failures in rpl_parallel2 · b30a768e
      Monty authored
      Problem was that we used same condition variable with 2 different mutex.
      Fixed by changing to use COND_rpl_thread_stop instead of COND_parallel_entry
      for stopping threads.
      
      Patch by Kristian Nielsen
      b30a768e
    • Monty's avatar
      Fixed compiler warnings · 72dc30f2
      Monty authored
      72dc30f2
  6. 19 Nov, 2015 1 commit
  7. 18 Nov, 2015 6 commits
    • Sergei Golubchik's avatar
      Merge branch '5.5' into 10.0 · ab476a8d
      Sergei Golubchik authored
      ab476a8d
    • Sergei Petrunia's avatar
      MDEV-7370: Server deadlocks on renaming a table for which persistent statistics exists · f91798dd
      Sergei Petrunia authored
      RENAME TABLE code tries to update EITS statistics. It hung, because
      it used an index on (db_name,table_name) to find the table, and attempted
      to update these values at the same time. The fix is do what SQL UPDATE
      statement does when updating index that it's used for scanning:
      - First, buffer the rowids of rows to be updated,
      - then make the second pass to actually update the rows
      
      Also fixed the call to rename_table_in_stat_tables() in sql_rename.cc
      to pass the correct new database (before, it passed old db_name so cross-
      database renames were not handled correctly).
      
      Variant #2, with review feedback addressed.
      f91798dd
    • Monty's avatar
      Fixed buildbot failures on Solaris 64 bit · c2ec8977
      Monty authored
      rpl/rpl_mdev382     ; Wrong replace in show_binlog_events2.inc
      binlog/database     ; Different error on Solaris if file exists
      mroonga/repair_table_no_index_file ; Different system error on Solaris
      partition_not_blackhole ; Different error on Solaris
      partition_myisam     ; Different error on Solaris
      
      Some other failures in mroonga was because have_32bit.inc didn't correctly
      detect 64 bits on Solaris. Fixed using DEFAULT_MACHINE instead of MACHINE_TYPE
      for Sys_version_compile_machine.
      c2ec8977
    • Monty's avatar
    • Sergei Golubchik's avatar
      MDEV-9051 mysqld got signal 11, after upgrade to 10.1.8 · 43a50909
      Sergei Golubchik authored
      feedback plugin needs to set tables->select_lex properly
      43a50909
    • Sergei Golubchik's avatar
      feedback plugin debug · 72616298
      Sergei Golubchik authored
      make it possible to change feedback plugin wait intervals
      * only in debug builds
      * and force the feedback report to be ignored
      
      update the test to use this feature
      72616298
  8. 17 Nov, 2015 2 commits
  9. 14 Nov, 2015 2 commits
  10. 13 Nov, 2015 7 commits
  11. 12 Nov, 2015 3 commits
  12. 11 Nov, 2015 1 commit
  13. 10 Nov, 2015 1 commit
  14. 09 Nov, 2015 4 commits
  15. 06 Nov, 2015 3 commits
    • Oleksandr Byelkin's avatar
      MDEV-8701 Crash on derived query · c88ca2c2
      Oleksandr Byelkin authored
      MDEV-8938 Server Crash on Update with joins
      
      Make unique table check after setup_fields of update because unique table can materialize table and we do not need field resolving after materialization.
      c88ca2c2
    • Vladislav Vaintroub's avatar
      MDEV-9024 Build fails with VS2015 · f1daf9ce
      Vladislav Vaintroub authored
      Fix build failures caused by new C runtime library
      - isnan, snprintf, struct timespec are now defined, attempt to
      redefine them leads
      - P_tmpdir, tzname are no more defined
      -  lfind() and lsearch() in lf_hash.c had to be renamed,  declaration
      conflicts with some C runtime functions with the same name declared in
      a header included by stdlib.h
      
       Also fix couple of annoying warnings :
      - remove #define NOMINMAX from config.h to avoid "redefined" compiler
      warnings(NOMINMAX is already in compile flags)
      
      - disable incremental linker in Debug as well (feature not used much
      and compiler crashes often)
      
      
      Also simplify package building with Wix, require Wix 3.9 or later
      (VS2015 is not compatible with old Wix 3.5/3.6)
      f1daf9ce
    • Alexander Barkov's avatar
      MDEV-7550 TokuDB crashes in build tests on Launchpad · a36048d1
      Alexander Barkov authored
      When compiled with "-Wl,-Bsymbolic-functions" flags
      (e.g. when building a .deb package on Ubuntu) with TokuDB and jemalloc,
      mysqld crashed in toku_get_processor_frequency_cpuinfo() when
      free()-ing a buffer returned by getline().
      getline() uses libc malloc() internally, while free() is aliased
      to jemalloc's free() in this configuration.
      Fixing not to use getline(). Using a static buffer instead.
      a36048d1
  16. 05 Nov, 2015 2 commits
  17. 03 Nov, 2015 1 commit
    • Vladislav Vaintroub's avatar
      MDEV-8669 MTR client connections on Windows became much slower. · 245bfc52
      Vladislav Vaintroub authored
      The regression is caused by change bind-address server parameter
      in MDEV-8083, so now server listens on IPv4 only by default.
      
      The problem however is that on Windows, connection to server on localhost
      appears to be much faster, if server listens on IPv6/dual stack.
      mysql_real_connect() would try to connect to IPv6 loopback  first,
      and if this fails, the failing connect() call takes several seconds.
      
      To fix, use bind-address=* on Windows, and 127.0.0.1 elsewhere
      245bfc52
  18. 30 Oct, 2015 1 commit