1. 13 Mar, 2020 8 commits
    • Sujatha's avatar
      MDEV-10047: table-based master info repository · d9d3c222
      Sujatha authored
      Problem:
      =======
      When we upgrade from "mysql" to "mariadb" if slave is using repositories as
      tables their data is completely ignored and no warning is issued in error log.
      
      Fix:
      ===
      "mysql_upgrade" test should check for the presence of data in
      "mysql.slave_master_info" and "mysql.slave_relay_log_info" tables. When tables
      have some data the upgrade script should report a warning which hints users
      that the data in repository tables will be ignored.
      d9d3c222
    • Marko Mäkelä's avatar
      Fix clang 10 warnings · 9f858f38
      Marko Mäkelä authored
      _ma_fetch_keypage(): Correct an assertion that used to always hold.
      Thanks to clang -Wint-in-bool-context for flagging this.
      
      double_to_datetime_with_warn(): Suppress -Wimplicit-int-float-conversion
      by adding a cast. LONGLONG_MAX converted to double will actually be
      LONGLONG_MAX+1.
      9f858f38
    • Marko Mäkelä's avatar
      MDEV-21933 INFORMATION_SCHEMA.INNODB_SYS_TABLESPACES accesses SYS_DATAFILES · 2e8b0c56
      Marko Mäkelä authored
      All tablespace metadata is buffered in fil_system. There is a LRU
      mechanism, but that only controls the opening and closing of
      fil_node_t::handle.
      
      It is much more efficient and less error-prone to access data file names
      by looking up the fil_space_t object rather than by essentially joining
      each row with an access to SYS_DATAFILES via the InnoDB internal SQL parser.
      
      dict_get_first_path(): Declare static. The function may only be needed
      when loading or updating the data dictionary. Also, change a condition
      in order to avoid a bogus GCC 10 -Wstringop-overflow warning for
      mem_strdupl() about len==ULINT_UNDEFINED.
      
      i_s_sys_tablespaces_fill_table(): Do not access other InnoDB internal
      dictionary tables than SYS_TABLESPACES.
      2e8b0c56
    • Marko Mäkelä's avatar
      Fix GCC 10 -Wclass-memaccess · 47382a2f
      Marko Mäkelä authored
      47382a2f
    • Marko Mäkelä's avatar
      Fix GCC 10 -Wstringop-truncation · a8566f72
      Marko Mäkelä authored
      a8566f72
    • Marko Mäkelä's avatar
      Update libmariadb · 2c8fa28f
      Marko Mäkelä authored
      This fixes GCC 10.0.1 -Wstringop-truncation and some typos.
      2c8fa28f
    • Marko Mäkelä's avatar
      Merge 10.1 into 10.2 · 32904dc5
      Marko Mäkelä authored
      32904dc5
    • Marko Mäkelä's avatar
      Merge 5.5 into 10.1 · 7b082fb0
      Marko Mäkelä authored
      7b082fb0
  2. 12 Mar, 2020 1 commit
  3. 11 Mar, 2020 5 commits
  4. 10 Mar, 2020 5 commits
  5. 09 Mar, 2020 2 commits
  6. 08 Mar, 2020 2 commits
  7. 06 Mar, 2020 3 commits
  8. 05 Mar, 2020 2 commits
  9. 02 Mar, 2020 1 commit
    • Vladislav Vaintroub's avatar
      MDEV-21857 - Fix sporadic failure of mdev375 · f0d2542a
      Vladislav Vaintroub authored
      status threads_connected can temporarily be bigger than max_connections+1
      
      If SHOW STATUS LIKE "Threads_connected" comes after
      ER_CON_COUNT_ERROR is sent to the client, but before the counter is
      decremented, Threads_connected can differ from the expected value.
      f0d2542a
  10. 28 Feb, 2020 1 commit
  11. 26 Feb, 2020 2 commits
  12. 25 Feb, 2020 2 commits
  13. 23 Feb, 2020 1 commit
    • seppo's avatar
      MDEV-21723 Async slave thread BF abort and replaying fixes (#1448) · 4618c974
      seppo authored
      If async replication slave thread conflicts with cluster replication,
      then the async slave transaction should be BF aborted, and depending on the
      state of async slave transaction execution, potentially also replayed.
      There were problems in such BF abort implementation and the replaying was not
      started.
      This pull request contains fixes which make sure that if async slave thread is
      marked to abort and replay, it will complete carry out the rollback and
      release all locks and resources before starting the replaying. After replaying,
      async slave transactions is treated as successful, so the slave thread will
      continue as usual, handling next replication event.
      
      There is also new mtr test: galera.galera_slave_replay, which stresses both a
      certification failure for async slave thread and a successful BF abort
      followed by replaying.
      4618c974
  14. 22 Feb, 2020 1 commit
    • Anel Husakovic's avatar
      MDEV-21374: When "--help --verbose" prints out configuration file paths, the... · b9689712
      Anel Husakovic authored
      MDEV-21374: When "--help --verbose" prints out configuration file paths, the --defaults-file option is not considered
      
      * `--defaults-file` option is showed only in `--help --verbose` if
      applied
      * `--default-extra-file` is showing correctly now in `--help --verbose`,
      previously it was treated as a directory with appended `my.cnf`
      b9689712
  15. 20 Feb, 2020 3 commits
    • Thirunarayanan Balathandayuthapani's avatar
      MDEV-21563 FTS thread aborts during shutdown · 3ce49a0a
      Thirunarayanan Balathandayuthapani authored
      - Add warning suppression in misc_debug2 test.
      3ce49a0a
    • Anel Husakovic's avatar
      Clean wrong cherry-pick from previous commit · 0d1dd2e7
      Anel Husakovic authored
      - Delete variable HAVE_PTHREAD_CONDATTR_SETCLOCK and check
      - Delete second HAVE_PTHREAD_KEY_DELETE
      0d1dd2e7
    • Daniel Black's avatar
      my_getncpus based on threads available · fb01cc37
      Daniel Black authored
      Detecting the cpus based on sysconf of the online CPUs can significantly
      over estimate the number of cpus available.
      
      Wheither via numactl, cgroups, taskset, systemd constraints, docker
      containers and probably other mechanisms, the number of threads mysqld
      can be run on can be quite less.
      
      As such we use the pthread_getaffinity_np function on Linux and FreeBSD
      (identical API) to get the number of CPUs.
      
      The number of CPUs is the default for the thread_pool_size and a too
      high default will resulting in large memory usage and high context
      switching overhead.
      
      Closes PR #922
      fb01cc37
  16. 17 Feb, 2020 1 commit