1. 08 Mar, 2017 5 commits
    • Marko Mäkelä's avatar
      Merge 5.5 into 10.0 · 47396dde
      Marko Mäkelä authored
      Also, implement MDEV-11027 a little differently from 5.5:
      
      recv_sys_t::report(ib_time_t): Determine whether progress should
      be reported.
      
      recv_apply_hashed_log_recs(): Rename the parameter to last_batch.
      47396dde
    • Marko Mäkelä's avatar
      MDEV-12206 Query_cache::send_result_to_client() may corrupt THD::query_plan_flags · 6860a4b5
      Marko Mäkelä authored
      This is essentially a backport of the 10.0
      commit 203f4d41
      that fixes a bug and silences a GCC 6.3.0 warning
      about a left shift of a signed integer.
      
      Missing parenthesis in a macro definition caused wrong operation
      in the Query_cache::send_result_to_client() statement
         thd->query_plan_flags= (thd->query_plan_flags & ~QPLAN_QC_NO) | QPLAN_QC;
      
      This would expand to
         thd->query_plan_flags= (thd->query_plan_flags & ~1) << 6 | 1 << 5;
      
      which would shift the flags by 6 and clear an unrelated flag, instead
      of clearing the flag (1 << 6).
      6860a4b5
    • Marko Mäkelä's avatar
      MDEV-11027 InnoDB log recovery is too noisy · 9c47beb8
      Marko Mäkelä authored
      Provide more useful progress reporting of crash recovery.
      
      recv_sys_t::progress_time: The time of the last report.
      
      recv_scan_print_counter: Remove.
      
      log_group_read_log_seg(): After after each I/O request,
      report progress if needed.
      
      recv_apply_hashed_log_recs(): At the start of each batch,
      if there are pages to be recovered, issue a message.
      9c47beb8
    • Marko Mäkelä's avatar
      Fix a compiler warning. · 1fd3cc8c
      Marko Mäkelä authored
      1fd3cc8c
    • Marko Mäkelä's avatar
      Fix some GCC 6.3.0 warnings in MyISAM and Maria. · 17a1b194
      Marko Mäkelä authored
      The C++ standard does not allow references to be NULL.
      Assign the return value of THD::alloc() to a pointer,
      not to a reference.
      17a1b194
  2. 06 Mar, 2017 4 commits
  3. 05 Mar, 2017 10 commits
  4. 04 Mar, 2017 5 commits
  5. 03 Mar, 2017 4 commits
  6. 02 Mar, 2017 8 commits
    • Vicențiu Ciorbaru's avatar
      Merge branch '5.5' into 10.0 · 1acfa942
      Vicențiu Ciorbaru authored
      1acfa942
    • Daniel Black's avatar
      MDEV-11610: support-files/mysql-log-rotate.sh not binlog either · d04d835f
      Daniel Black authored
      For the same reason as removing binlog rotation on Debian.
      d04d835f
    • Daniel Black's avatar
      MDEV-11610: Alter Debian log rotate to not rotate binary/relay logs · 156cf86d
      Daniel Black authored
      Rotating binary/relay logs can cause interuption to the processing
      on the server. Binary and relay logs have their own mechanism already
      for not getting out of control (expire_logs_days).
      
      By no longer rotating binary and relay logs log rotation is limited to
      the following logs:
      * error log
      * general log
      * slow query log
      
      Writing these to the binary log would cause any logrotation on the
      slave to occur twice, once due to this and another due to the log-
      rotate script on the slave. Now --local is passed to mysqladmin to
      prevent this duplication.
      156cf86d
    • Daniel Black's avatar
      MDEV-11610: mysqladmin flush-X-log options · 0af8b565
      Daniel Black authored
      Add the following options to mysqladmin
      
      +  flush-binary-log        Flush binary log
      +  flush-engine-log        Flush engine log(s)
      +  flush-error-log         Flush error log
      +  flush-general-log       Flush general log
      +  flush-relay-log         Flush relay log
      +  flush-user-resources    Flush user resources
      0af8b565
    • Olivier Bertrand's avatar
      Update version number and date · b2956b2a
      Olivier Bertrand authored
        modified:   storage/connect/ha_connect.cc
      
      Add conditional SE exception support
        modified:   storage/connect/json.cpp
        modified:   storage/connect/plgdbutl.cpp
      
      Change %p in %x in some sprintf functions.
      This to avoid some compiler warnings.
        modified:   storage/connect/tabwmi.cpp
        modified:   storage/connect/tabxml.cpp
        modified:   storage/connect/value.h
      
      Add JavaWrappers.jar to the class path
        modified:   storage/connect/jdbconn.cpp
      
      Fix wrong declare (char *buf[256]; --> char  buf[256];)
        modified:   storage/connect/xindex.cpp
      b2956b2a
    • Daniel Black's avatar
      MDEV-11610: Add --local to mysqladmin · 33c1f20d
      Daniel Black authored
      33c1f20d
    • Daniel Black's avatar
      MDEV-11386: Advance Toochain library cache workaround (temporary) · 659047b8
      Daniel Black authored
      Due to the way Advance Toolchain before 10.0-3 and 8.0-8 is
      packaged, shared libraries installed after the library cache
      advance-toolchain-atX.Y-runtime package aren't updated in
      /opt/atX.Y/etc/ld.so.cache. This results in mysqld,
      configured with RUNPATH set to /opt/atX.Y/lib64, resulting
      in the Advance Toolchain loader being used and if libraries
      such as jemalloc, libssl or any other library that mysqld uses
      is installed after Advance Toolchain, these libraries aren't in
      the cache and therefore won't be found in the RPM postinstall
      when mysqld is executed by mysql_install_db.
      Signed-off-by: default avatarDaniel Black <daniel.black@au.ibm.com>
      659047b8
    • Sergey Vojtovich's avatar
      MDEV-11221 - main.events_restart failed in bb · 71f53bf7
      Sergey Vojtovich authored
      This is an addition to original fix. Buildbot revealed another sporadic failure
      in perfschema.threads_mysql test. Tests relies on data stored in
      performance_schema.threads, while performing waits on
      information_schema.processlist. These tables are not updated synchronously.
      
      Fixed by performing waits on performance_schema.threads instead.
      71f53bf7
  7. 01 Mar, 2017 2 commits
    • Sergey Vojtovich's avatar
      Fixed missing DBUG_RETURN · c1c5b7a8
      Sergey Vojtovich authored
      c1c5b7a8
    • Sergey Vojtovich's avatar
      MDEV-11221 - main.events_restart failed in bb · e9ad4bdb
      Sergey Vojtovich authored
      Applied lost in a merge revision 7f38a070:
      
      MDEV-10043 - main.events_restart fails sporadically in buildbot (crashes upon
                   shutdown)
      
      There was race condition between shutdown thread and event worker threads.
      
      Shutdown thread waits for thread_count to become 0 in close_connections(). It
      may happen so that event worker thread was started but didn't increment
      thread_count by this time. In this case shutdown thread may miss wait for this
      working thread and continue deinitialization. Worker thread in turn may continue
      execution and crash on deinitialized data.
      
      Fixed by incrementing thread_count before thread is actually created like it is
      done for connection threads.
      
      Also let event scheduler not to inc/dec running threads counter for symmetry
      with other "service" threads.
      e9ad4bdb
  8. 28 Feb, 2017 2 commits
    • Oleksandr Byelkin's avatar
      MDEV-9635: Server crashes in part_of_refkey or assertion `!created &&... · 75f6067e
      Oleksandr Byelkin authored
      MDEV-9635: Server crashes in part_of_refkey  or assertion `!created && key_to_save < (int)s->keys' failed in TABLE::use_index(int) or with join_cache_level>2
      
      Do not try to create index where ref is for hash join.
      75f6067e
    • Sergei Golubchik's avatar
      MDEV-11753 Link failure on missing -L${LIBLZ4_LIBRARY_DIR} · cc413ce9
      Sergei Golubchik authored
      On FreeBSD liblz4 is installed in /usr/local/lib.
      Groonga uses pkg_check_modules to check for liblz4 (that is, pkg-config),
      and then it used to set for libgroonga.a
      
        link_directories({$LIBLZ4_LIBRARY_DIRS})
        target_link_libraries(... ${LIBLZ4_LIBRARIES})
      
      Now groonga is a static library, linked into ha_mroonga.so. CMake won't
      link dynamic liblz4.so into libgroonga.a, instead it'll pass it as a
      dependency and will link it into ha_mroonga.so. Fine so far. But it will
      not pass link_directories from the static library as a dependency,
      so ha_mroonga.so won't find liblz4.so
      
      As suggested on cmake mailing list (e.g.
      here: http://public.kitware.com/pipermail/cmake/2011-November/047468.html)
      we switch to use the full path to liblz4.so, instead of the -l/-L pair.
      cc413ce9