1. 14 Nov, 2020 7 commits
  2. 13 Nov, 2020 9 commits
  3. 12 Nov, 2020 10 commits
  4. 11 Nov, 2020 14 commits
    • Marko Mäkelä's avatar
      Merge mariadb-10.2.36 into 10.2 · dd33a70d
      Marko Mäkelä authored
      dd33a70d
    • Marko Mäkelä's avatar
      Merge mariadb-10.3.27 into 10.3 · 340feb01
      Marko Mäkelä authored
      340feb01
    • sjaakola's avatar
      MDEV-24119 MDL BF-BF Conflict caused by TRUNCATE TABLE · 2fbcddbe
      sjaakola authored
      A follow-up fix, for original fix for MDEV-21577, which did not handle well
      temporary tables.
      
      OPTIMIZE and REPAIR TABLE statements can take a list of tables as argument,
      and some of the tables may be temporary. Proper handling of temporary tables
      is to skip them and continue working on the real tables. The bad version, skipped all tables,
      if a single temporary table was in the argument list. And this resulted so that FK parent
      tables were not scnanned for the remaining real tables. Some mtr tests, using OPTIMIZE or REPAIR
      for temporary tables caused regressions bacause of this, e.g. galera.galera_optimize_analyze_multi
      
      The fix in this PR opens temporary and real tables first, and in the table handling loop skips
      temporary tables, FK parent scanning is done only for real tables.
      
      The test has new scenario for OPTIMIZE and REPAIR issued for two tables of which one is temporary table.
      Reviewed-by: default avatarJan Lindström <jan.lindstrom@mariadb.com>
      2fbcddbe
    • sjaakola's avatar
      MDEV-24119 MDL BF-BF Conflict caused by TRUNCATE TABLE · ad432ef4
      sjaakola authored
      This PR fixes same issue as MDEV-21577 for TRUNCATE TABLE.
      MDEV-21577 fixed TOI replication for OPTIMIZE, REPAIR and ALTER TABLE
      operating on FK child table. It was later found out that also TRUNCATE
      has similar problem and needs a fix.
      
      The actual fix is to do FK parent table lookup before TRUNCATE TOI
      isolation and append found FK parent table names in certification key
      list for the write set.
      
      PR contains also new test scenario in galera_ddl_fk_conflict test where
      FK child has two FK parent tables and there are two DML transactions operating
      on both parent tables.
      
      For development convenience, new TO isolation macro was added:
      WSREP_TO_ISOLATION_BEGIN_IF and WSREP_TO_ISOLATION_BEGIN_ALTER macro was changed
      to skip the goto statement.
      Reviewed-by: default avatarJan Lindström <jan.lindstrom@mariadb.com>
      ad432ef4
    • Marko Mäkelä's avatar
      Merge mariadb-10.5.8 into 10.5 · b4a5ad8d
      Marko Mäkelä authored
      b4a5ad8d
    • Marko Mäkelä's avatar
      Merge mariadb-10.4.17 into 10.4 · 99a97747
      Marko Mäkelä authored
      99a97747
    • Daniel Bartholomew's avatar
      bump the VERSION · fff469db
      Daniel Bartholomew authored
      fff469db
    • Daniel Bartholomew's avatar
      bump the VERSION · 940db6ab
      Daniel Bartholomew authored
      940db6ab
    • Daniel Bartholomew's avatar
      bump the VERSION · bafbfb55
      Daniel Bartholomew authored
      bafbfb55
    • Daniel Bartholomew's avatar
      bump the VERSION · 15550ed3
      Daniel Bartholomew authored
      15550ed3
    • Marko Mäkelä's avatar
      Cleanup: Remove dict_space_is_empty(), dict_space_get_id() · d6ee2858
      Marko Mäkelä authored
      As noted in commit 0b66d3f7,
      MariaDB does not support CREATE TABLESPACE for InnoDB.
      Hence, some code that was added in
      commit fec844ac
      and originally in
      mysql/mysql-server@c71dd213bd434c0579e454ab8880e6d3756b0fb0
      is unused in MariaDB and should be removed.
      d6ee2858
    • Marko Mäkelä's avatar
      MDEV-24156 trx_undo_left() fails to prevent overflow · 7b7e5922
      Marko Mäkelä authored
      trx_undo_left(): Return 0 in case of an overflow, instead of
      returning a negative number interpreted as a large positive number.
      Also, add debug assertions to check that the pointer is within
      the page area. This should allow us to catch bugs like
      MDEV-24096 easier in the future.
      7b7e5922
    • Marko Mäkelä's avatar
      MDEV-24182 ibuf_merge_or_delete_for_page() contains dead code · bd528b0c
      Marko Mäkelä authored
      The function ibuf_merge_or_delete_for_page() was always being
      invoked with update_ibuf_bitmap=true ever since
      commit cd623508
      fixed up something after MDEV-9566.
      
      Furthermore, the parameter page_size is never being passed as a
      null pointer, and therefore it should better be a reference to
      a constant object.
      bd528b0c
    • Marko Mäkelä's avatar
      MDEV-22343 Remove SYS_TABLESPACES and SYS_DATAFILES · 5407117a
      Marko Mäkelä authored
      The InnoDB internal tables SYS_TABLESPACES and SYS_DATAFILES as well as the
      INFORMATION_SCHEMA views INNODB_SYS_TABLESPACES and INNODB_SYS_DATAFILES
      were introduced in MySQL 5.6 for no good reason in
      mysql/mysql-server/commit/e9255a22ef16d612a8076bc0b34002bc5a784627
      when the InnoDB support for the DATA DIRECTORY attribute was introduced.
      
      The file system should be the authoritative source of information on files.
      Storing information about file system paths in the file system (symlinks,
      or even the .isl files that were unfortunately chosen as the solution) is
      sufficient. If information is additionally stored in some hidden tables
      inside the InnoDB system tablespace, everything unnecessarily becomes
      more complicated, because more copies of data mean more opportunity
      for the copies to be out of sync, and because modifying the data in
      the system tablespace in the desired way might not be possible at all
      without modifying the InnoDB source code. So, the copy in the system
      tablespace basically is a redundant, non-authoritative source of
      information.
      
      We will stop creating or accessing the system tables SYS_TABLESPACES
      and SYS_DATAFILES.
      
      We will also remove the view
      INFORMATION_SCHEMA.INNODB_SYS_DATAFILES along with SYS_DATAFILES.
      
      The view
      INFORMATION_SCHEMA.INNODB_SYS_TABLESPACES will be repurposed
      to directly reflect fil_system.space_list. The column
      PAGE_SIZE, which would always contain the value of
      the GLOBAL read-only variable innodb_page_size, is
      removed. The column ZIP_PAGE_SIZE, which would actually
      contain the physical page size of a page, is renamed to
      PAGE_SIZE. Finally, a new column FILENAME is added, as a
      replacement of SYS_DATAFILES.PATH.
      
      This will also
      address MDEV-21801 (files that were created before upgrading
      to MySQL 5.6 or MariaDB 10.0 or later were never registered
      in SYS_TABLESPACES or SYS_DATAFILES) and
      MDEV-21801 (information about the system tablespace is not stored
      in SYS_TABLESPACES or SYS_DATAFILES).
      5407117a