1. 21 Mar, 2020 6 commits
    • Rasmus Johansson's avatar
      MDEV-21303 Make executables MariaDB named · 9e1b3af4
      Rasmus Johansson authored
      To change all executables to have a mariadb name I had to:
      - Do name changes in every CMakeLists.txt that produces executables
      - CREATE_MARIADB_SYMLINK was removed and GET_SYMLINK added by Wlad to reuse the function in other places also
      - The scripts/CMakeLists.txt could make use of GET_SYMLINK instead of introducing redundant code, but I thought I'll leave that for next release
      - A lot of changes to debian/.install and debian/.links files due to swapping of real executable and symlink. I did not however change the name of the manpages, so the real name is still mysql there and mariadb are symlinks.
      - The Windows part needed a change now when we made the executables mariadb -named. MSI (and ZIP) do not support symlinks and to not break backward compatibility we had to include mysql named binaries also. Done by Wlad
      9e1b3af4
    • Marko Mäkelä's avatar
      6fb59d52
    • Marko Mäkelä's avatar
      Correct a result · 2559075b
      Marko Mäkelä authored
      2559075b
    • Marko Mäkelä's avatar
      Merge 10.4 into 10.5 · 5203bc10
      Marko Mäkelä authored
      5203bc10
    • Marko Mäkelä's avatar
      Remove a misleading copyright message · 76cdc1d7
      Marko Mäkelä authored
      The code that commit bb24fa31
      moved to a separate file assume_aligned.h was introduced in
      commit 25e2a556 and developed
      by employees of MariaDB Corporation.
      76cdc1d7
    • Daniele Sciascia's avatar
      MDEV-21675: Data inconsistency after multirow insert rollback (#1474) · 9394cc89
      Daniele Sciascia authored
      * Remove dead code
      
      * MDEV-21675 Data inconsistency after multirow insert rollback
      
      This patch fixes data inconsistencies that happen after rollback of
      multirow inserts, with binlog disabled.
      For example, statements such as `INSERT INTO t1 VALUES (1,'a'),(1,'b')`
      that fail with duplicate key error. In such cases the whole statement
      is rolled back. However, with wsrep_emulate_binlog in effect, the
      IO_CACHE would not be truncated, and the pending rows events would be
      replicated to the rest of the cluster. In the above example, it would
      result in row (1,'a') being replicated, whereas locally the statement
      is rolled back entirely. Making the cluster inconsistent.
      The patch changes the code so that prior to statement rollback,
      pending rows event are removed and the stmt cache reset.
      That patch also introduces MTR tests that excercise multirow insert
      statements for regular, and streaming replication.
      9394cc89
  2. 20 Mar, 2020 13 commits
  3. 19 Mar, 2020 11 commits
  4. 18 Mar, 2020 10 commits
    • Andrei Elkin's avatar
      MDEV-21975 Add BINLOG REPLAY privilege and bind new privileges to ... · 14ef6a2c
      Andrei Elkin authored
      Testing is extended with a block added up to binlog_grant.
      14ef6a2c
    • Otto Kekäläinen's avatar
      Travis-CI: Ignore clang/GCC 6 that permanently fails on 10.5 branch · 12b7d5dc
      Otto Kekäläinen authored
      The purpose of a CI system is to validate if a change is acceptable or not.
      Thus tests that always fail should be ignored, otherwise the result of the
      CI (green/red) is not reliable and actionable.
      12b7d5dc
    • Otto Kekäläinen's avatar
      Travis-CI: Shorten deb build log to keep it under 4 MB · 41952c85
      Otto Kekäläinen authored
      There is a 4 MB hard limit on Travis-CI and build output needs to be less
      than that. Silencing the 'make install' step gets rid of a lot of
      "Installing.." and "Missing.." and removing all mysql-test files will
      make the dh_missing warnings much shorter.
      41952c85
    • Otto Kekäläinen's avatar
      Deb: Fix executable bit so dh-exec works (regression in fd2dc9c3) · 30b44aae
      Otto Kekäläinen authored
      Package contents before this fix:
      
      libmariadb-dev-compat
      drwxr-xr-x root/root ./
      drwxr-xr-x root/root ./usr/
      drwxr-xr-x root/root ./usr/bin/
      lrwxrwxrwx root/root ./usr/bin/mysql_config
      drwxr-xr-x root/root ./usr/include/
      lrwxrwxrwx root/root ./usr/include/mysql
      drwxr-xr-x root/root ./usr/lib/
      drwxr-xr-x root/root ./usr/lib/${DEB_HOST_MULTIARCH}/
      drwxr-xr-x root/root ./usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/
      lrwxrwxrwx root/root ./usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig/mysqlclient.pc
      drwxr-xr-x root/root ./usr/lib/x86_64-linux-gnu/
      lrwxrwxrwx root/root ./usr/lib/x86_64-linux-gnu/libmysqlclient.a
      lrwxrwxrwx root/root ./usr/lib/x86_64-linux-gnu/libmysqlclient_r.a
      lrwxrwxrwx root/root ./usr/lib/x86_64-linux-gnu/libmysqlclient_r.so
      lrwxrwxrwx root/root ./usr/lib/x86_64-linux-gnu/libmysqlclient.so
      drwxr-xr-x root/root ./usr/share/
      drwxr-xr-x root/root ./usr/share/doc/
      drwxr-xr-x root/root ./usr/share/doc/libmariadb-dev-compat/
      -rw-r--r-- root/root ./usr/share/doc/libmariadb-dev-compat/changelog.gz
      -rw-r--r-- root/root ./usr/share/doc/libmariadb-dev-compat/copyright
      
      With this fix the '/usr/lib/${DEB_HOST_MULTIARCH}/' becomes correctly
      populated with the actual architecture dependent path.
      
      Also add dh-exec to Travis-CI testing so that CI passes.
      
      As an extra small thing, clean away excess executable bit from Mroonga
      plugin maintainer script that does not need it.
      30b44aae
    • Otto Kekäläinen's avatar
      MDEV-21942: Correctly use newer libpcre2 version (regression in b6b69806) · 0f8d6e3b
      Otto Kekäläinen authored
      If libpcre2 (10.x) is not defined and only the older libpcre3 (8.x)
      would be available, the build would attempt to download it from the
      Internet, violating many build environment restrictions.
      
      Commit b6b69806 attempted to fix
      MDEV-21942 but was incomplete, and after in CI systems started
      failing since the .travis.yml update was missing.
      0f8d6e3b
    • Vicențiu Ciorbaru's avatar
      Merge branch '10.4' into 10.5 · c235691d
      Vicențiu Ciorbaru authored
      c235691d
    • Marko Mäkelä's avatar
      MDEV-21962 Allocate buf_pool statically · a786f50d
      Marko Mäkelä authored
      Thanks to MDEV-15058, there is only one InnoDB buffer pool.
      Allocating buf_pool statically removes one level of pointer indirection
      and makes code more readable, and removes the awkward initialization of
      some buf_pool members.
      
      While doing this, we will also declare some buf_pool_t data members
      private and replace some functions with member functions. This is
      mostly affecting buffer pool resizing.
      
      This is not aiming to be a complete rewrite of buf_pool_t to
      a proper class. Most of the buffer pool interface, such as
      buf_page_get_gen(), will remain in the C programming style
      for now.
      
      buf_pool_t::withdrawing: Replaces buf_pool_withdrawing.
      buf_pool_t::withdraw_clock_: Replaces buf_withdraw_clock.
      
      buf_pool_t::create(): Repalces buf_pool_init().
      buf_pool_t::close(): Replaces buf_pool_free().
      
      buf_bool_t::will_be_withdrawn(): Replaces buf_block_will_be_withdrawn(),
      buf_frame_will_be_withdrawn().
      
      buf_pool_t::clear_hash_index(): Replaces buf_pool_clear_hash_index().
      buf_pool_t::get_n_pages(): Replaces buf_pool_get_n_pages().
      buf_pool_t::validate(): Replaces buf_validate().
      buf_pool_t::print(): Replaces buf_print().
      buf_pool_t::block_from_ahi(): Replaces buf_block_from_ahi().
      buf_pool_t::is_block_field(): Replaces buf_pointer_is_block_field().
      buf_pool_t::is_block_mutex(): Replaces buf_pool_is_block_mutex().
      buf_pool_t::is_block_lock(): Replaces buf_pool_is_block_lock().
      buf_pool_t::is_obsolete(): Replaces buf_pool_is_obsolete().
      buf_pool_t::io_buf: Make default-constructible.
      buf_pool_t::io_buf::create(): Delayed 'constructor'
      buf_pool_t::io_buf::close(): Early 'destructor'
      
      HazardPointer: Make default-constructible. Define all member functions
      inline, also for derived classes.
      a786f50d
    • Vicențiu Ciorbaru's avatar
      Merge branch '10.3' into 10.4 · 6a634576
      Vicențiu Ciorbaru authored
      6a634576
    • Vicențiu Ciorbaru's avatar
      dd68db0c
    • Alexander Barkov's avatar
      MDEV-21975 Add BINLOG REPLAY privilege and bind new privileges to gtid_seq_no,... · e0eacbee
      Alexander Barkov authored
      MDEV-21975 Add BINLOG REPLAY privilege and bind new privileges to gtid_seq_no, preudo_thread_id, server_id, gtid_domain_id
      e0eacbee