1. 28 Nov, 2017 6 commits
  2. 24 Nov, 2017 4 commits
    • Monty's avatar
      Optimize RUN_HOOK() call · dae00c88
      Monty authored
      RUN_HOOK() is only called if semisync is enabled
      
      As the server can't disable the hooks if something is in progress, I added
      a new variable, run_hooks_enabled, that is set the first time semi sync is
      used. This means that RUN_HOOK will have no overhead, unless semi sync
      master or slave has been enabled once.
      
      Some of the changes was just to get rid of warnings for embedded server
      dae00c88
    • Monty's avatar
      Changed from using LOCK_log to LOCK_binlog_end_pos for binary log · 3c5ebd9d
      Monty authored
      Part of MDEV-13073 AliSQL Optimize performance of semisync
      
      The idea it to use a dedicated lock detecting if there is new data in
      the master's binary log instead of the overused LOCK_log.
      
      Changes:
      - Use dedicated COND variables for the relay and binary log signaling.
        This was needed as we where the old 'update_cond' variable was used
        with different mutex's, which could cause deadlocks.
         - Relay log uses now COND_relay_log_updated and LOCK_log
         - Binary log uses now COND_bin_log_updated and LOCK_binlog_end_pos
      - Renamed signal_cnt to relay_signal_cnt (as we now have two signals)
      - Added some missing error handling in MYSQL_BIN_LOG::new_file_impl()
      - Reformatted some comments with old style
      - Renamed m_key_LOCK_binlog_end_pos to key_LOCK_binlog_end_pos
      - Changed 'signal_update()' to update_binlog_end_pos() which works for
        both relay and binary log
      3c5ebd9d
    • Monty's avatar
      Removed not used lock argument from read_log_event · 4234a170
      Monty authored
      4234a170
    • Monty's avatar
      Moved semisync from a plugin to normal server · 2e9a39f3
      Monty authored
      Part of MDEV-13073 AliSQL Optimize performance of semisync
      
      Did the following renames to match other similar variables
      key_ss_mutex_LOCK_binlog_       > key_LOCK_bing
      key_ss_cond_COND_binlog_send_  -> key_COND_binlog_send
      COND_binlog_send_              -> COND_binlog_send
      LOCK_binlog_                   -> LOCK_binlog
      
      debian/mariadb-server-10.2.install does not install semisync libs.
      2e9a39f3
  3. 06 Nov, 2017 2 commits
  4. 04 Nov, 2017 1 commit
  5. 02 Nov, 2017 5 commits
    • Igor Babaev's avatar
      Fixed mdev-14093 Wrong result upon JOIN with INDEX with no rows · beac522b
      Igor Babaev authored
      in joined table + GROUP BY + GROUP_CONCAT + HAVING + ORDER BY
      [by field from HAVING] + 1 row expected
      
      The fix is actually a port of the fix for bug #17055185 from
      mysql code line (see commit f289aeeef0743508ff87211084453b3b88a6d017
      by Mithun C Y into mysql-5.6). The test case for the bug #17055185
      was also ported.
      beac522b
    • Vladislav Vaintroub's avatar
      Fix a warning. · b0cfb168
      Vladislav Vaintroub authored
      b0cfb168
    • Sergei Petrunia's avatar
      Make rocksdb.read_only_tx pass and enable it · 80d61515
      Sergei Petrunia authored
      - FB/MySQL 5.6' MyRocks has START TRANSACTION WITH CONSISTENT
        ROCKSDB SNAPSHOT, which returns binlog position.
      
      - MariaDB has a cross-engine START TRANSACTION WITH CONSISTENT
        SNAPSHOT. It can be used for the same purpose. Binlog position
        can be obtained from Binlog_snapshot_file/position status vars.
      80d61515
    • Marko Mäkelä's avatar
      MDEV-14244 MariaDB 10.2.10 fails to run on Debian Stretch with ext3 and O_DIRECT · 19733efa
      Marko Mäkelä authored
      os_file_set_size(): If posix_fallocate() returns EINVAL, fall back
      to writing zero bytes to the file. Also, remove some error log output,
      and make it possible for a server shutdown to interrupt the fall-back
      code.
      
      MariaDB 10.2 used to handle the EINVAL return value from posix_fallocate()
      before commit b731a5bc
      which refactored os_file_set_size() to try posix_fallocate().
      
      Why is the EINVAL returned? The GNU posix_fallocate() function
      would first try the fallocate() system call, which would return
      -EOPNOTSUPP for many file systems (notably, not ext4). Then, it
      would fall back to extending the file one block at a time by invoking
      pwrite(fd, "", 1, offset) where offset is 1 less than a multiple of
      the file block size. This would fail with EINVAL if the file is in
      O_DIRECT mode, because O_DIRECT requires aligned operation.
      19733efa
    • Monty's avatar
      Fixed compiler warning and warning from valgrind · 0f4e0055
      Monty authored
      The failing test was main.gis-json
      0f4e0055
  6. 01 Nov, 2017 2 commits
    • Monty's avatar
      Fixed that --malloc-lib works properly · 6b7918d5
      Monty authored
      - Expand paths also for jemalloc
      - Test also if tcmalloc or jemalloc is in /usr/lib64
      - Take into account that .so has a version
      - Remove automatic adding of flavors ( _minial, _debug). Better to
        have user specify these directly
      - Changed documentation link to MariaDB
      - Don't give extra error if mysqld_safe_helper doesn't exist
      6b7918d5
    • Marko Mäkelä's avatar
      Merge 10.1 into 10.2 · 6692b5f7
      Marko Mäkelä authored
      6692b5f7
  7. 31 Oct, 2017 7 commits
  8. 30 Oct, 2017 7 commits
  9. 29 Oct, 2017 6 commits