1. 07 Mar, 2017 6 commits
  2. 06 Mar, 2017 2 commits
    • Tor Didriksen's avatar
      Bug#18411494 WRONG COMPARSION ON BIG DECIMAL VALUES · e823023e
      Tor Didriksen authored
      Problem: integer literals may be converted to floats for
      comparison with decimal data. If the integers are large,
      we may lose precision, and give wrong results.
      
      Fix: for
        <non-const decimal expression> <cmp> <const string expression>
        or
        <const string expression> <cmp> <non-const decimal expression>
      we override the compare_type chosen by item_cmp_type(), and
      do comparison as decimal rather than float.
      
      (cherry picked from commit https://github.com/mysql/mysql-server/commit/1cf3489ba42df1f29c1f3e269443254087505166 and edited by Johannes Weißl <jargon@molb.org>)
      e823023e
    • Marko Mäkelä's avatar
      Replace some functions with macros. · 68d632bc
      Marko Mäkelä authored
      This is a non-functional change.
      
      On a related note, the calls fil_system_enter() and fil_system_exit()
      are often used in an unsafe manner. The fix of MDEV-11738 should
      introduce fil_space_acquire() and remove potential race conditions.
      68d632bc
  3. 03 Mar, 2017 3 commits
  4. 02 Mar, 2017 7 commits
    • 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
    • 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
    • Jan Lindström's avatar
      Merge pull request #312 from grooverdan/10.0-MDEV-10515-stat_tables_par-test-fix · 88b5eede
      Jan Lindström authored
      MDEV-10515: Correct stat_tables_par test results
      88b5eede
  5. 01 Mar, 2017 3 commits
    • Vladislav Vaintroub's avatar
    • 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
  6. 28 Feb, 2017 15 commits
  7. 27 Feb, 2017 2 commits
    • Daniel Black's avatar
      MDEV-11619: mtr --mem {no argument of a directory} (#320) · b54566d7
      Daniel Black authored
      This removes functionality of where ./mtr --mem /tmp/dir could be a directory.
      
      Now MTR_MEM=/tmp/dir ./mtr is needed.
      
      The case where MTR_MEM=/tmp/dir ./mtr --mem has the equivalent effect.
      Signed-off-by: default avatarDaniel Black <daniel.black@au.ibm.com>
      
      --mem works better as a pure flag, because it can be followed by command-line arguments (test names). If the option is allowed to have a value, the test name which directly follows it will be treated as the option value instead. It is possible to implement workarounds to avoid this, but they would not be completely reliable, and there is no practical purpose of such extension of functionality to justify them.
      b54566d7
    • Oleksandr Byelkin's avatar
      MDEV-11935: Queries in stored procedures with and EXISTS(SELECT * FROM VIEW)... · e5b877ce
      Oleksandr Byelkin authored
      MDEV-11935: Queries in stored procedures with and EXISTS(SELECT * FROM VIEW) crashes and closes hte conneciton.
      
      Use correct start point even for taken out from subselect items in process of exists2in conversion.
      e5b877ce
  8. 26 Feb, 2017 1 commit
  9. 23 Feb, 2017 1 commit