1. 01 Jul, 2019 5 commits
  2. 28 Jun, 2019 2 commits
    • Thirunarayanan Balathandayuthapani's avatar
      MDEV-17228 Encrypted temporary tables are not encrypted · 723a4b1d
      Thirunarayanan Balathandayuthapani authored
      - Introduce a new variable called innodb_encrypt_temporary_tables which is
      a boolean variable. It decides whether to encrypt the temporary tablespace.
      - Encrypts the temporary tablespace based on full checksum format.
      - Introduced a new counter to track encrypted and decrypted temporary
      tablespace pages.
      - Warnings issued if temporary table creation has conflict value with
      innodb_encrypt_temporary_tables
      - Added a new test case which reads and writes the pages from/to temporary
      tablespace.
      723a4b1d
    • Thirunarayanan Balathandayuthapani's avatar
      MDEV-19781 Add page id matching check in innochecksum tool · e4a0dbfb
      Thirunarayanan Balathandayuthapani authored
      Added the condition in innochecksum tool to check page id mismatch.
      This could catch the write corruption caused by InnoDB.
      
      Added the debug insert inside fil_io() to check whether it writes
      the page to wrong offset.
      e4a0dbfb
  3. 27 Jun, 2019 4 commits
  4. 26 Jun, 2019 1 commit
  5. 25 Jun, 2019 2 commits
  6. 24 Jun, 2019 2 commits
  7. 23 Jun, 2019 1 commit
  8. 21 Jun, 2019 3 commits
  9. 20 Jun, 2019 4 commits
  10. 19 Jun, 2019 3 commits
  11. 18 Jun, 2019 2 commits
    • Michael Widenius's avatar
      MDEV-19595 fixed · 8acbf9c1
      Michael Widenius authored
      The test cases for the MDEV found several independent bugs
      in MariaDB server and Aria:
      - If a temporary table was marked as crashed, it could never
        be deleted.
      - Opening of a crashed temporary table gave an error message
        but the error was never forwarded to the caller which caused
        an assert() in my_ok()
      - init_read_record() did mmap of all temporary tables, which is
        probably not a good idea as this area can potentially be
        very big. Changed code to only mmap internal temporary tables.
      - mmap-ed tables where not unmapped in case of repair/optimize
        which caused bad data in table and crashes if the original
        table files where replaced with new ones (as the old mmap
        was still in place). Fixed by removing the mmap in case
        of repair.
      - Cleaned up usage of code that disabled mmap in Aria
      8acbf9c1
    • Michael Widenius's avatar
      MDEV-18078 Assertion `trnman_has_locked_tables(trn) > 0' failed · b23c82fe
      Michael Widenius authored
      Problem was that in case of implicit rollback for alter table
      Aria did try to run commit twice.
      
      The test case for this is tricky to do in 10.2, so it will
      be added to 10.4 as part of BACKUP STAGE testing.
      b23c82fe
  12. 17 Jun, 2019 5 commits
    • Igor Babaev's avatar
      MDEV-19790 Wrong result for query with outer join and IS NOT TRUE predicate · 167da05f
      Igor Babaev authored
                 in where clause
      
      The classes Item_func_isnottrue and Item_func_isnotfalse inherited the
      implementation of the eval_not_null_tables method from the Item_func
      class. As a result the not_null_tables_cache was set incorrectly for
      the objects of these classes. It led to improper conversion of outer
      joins to inner joins when the where clause of the processed query
      contained IS NOT TRUE or IS NOT FALSE predicates. The coverted query
      in many cases produced a wrong result set.
      167da05f
    • Vladislav Vaintroub's avatar
      Fix debug assert to match its intention. · 71eea0c3
      Vladislav Vaintroub authored
      Do not check my_errno before it is set, check errno instead.
      Also, do not check errno, if prior pread() did not fail.
      71eea0c3
    • Vladislav Vaintroub's avatar
      MDEV-19750 mysql command wrong encoding · 5804bb4e
      Vladislav Vaintroub authored
      Restore the detection of default charset in command line utilities.
      It worked up to 10.1, but was broken by Connector/C.
      
      Moved code for detection of default charset from sql-common/client.c
      to mysys, and make command line utilities to use this code if charset
      was not specified on the command line.
      5804bb4e
    • Vladislav Vaintroub's avatar
      Portability fix. · 81f60e8a
      Vladislav Vaintroub authored
      81f60e8a
    • Michael Widenius's avatar
      MDEV-19055 Failures with temporary tables and Aria · c8b5fa4a
      Michael Widenius authored
      There was two separate problems:
      - Aria pagecache didn't properly handle re-reading of blocks
        that have given errors before (this triggered an assert)
      - temporary tables that where opened several times where
        not properly closed in ALTER, REPAIR or OPTIMIZE table
      
      Other things
      - Added a couple of asserts that will make it easier to
        find problems like this in the future.
      c8b5fa4a
  13. 16 Jun, 2019 6 commits