1. 29 Oct, 2016 2 commits
    • Jan Lindström's avatar
      MDEV-11004: Unable to start (Segfault or os error 2) when encryption key missing · 885577fb
      Jan Lindström authored
      Two problems:
      
      (1) When pushing warning to sql-layer we need to check that thd != NULL
      to avoid NULL-pointer reference.
      
      (2) At tablespace key rotation if used key_id is not found from
      encryption plugin tablespace should not be rotated.
      885577fb
    • Jan Lindström's avatar
      MDEV-10977: [ERROR] InnoDB: Block in space_id 0 in file ibdata1 encrypted. · bc323727
      Jan Lindström authored
      MDEV-10394: Innodb system table space corrupted
      
      Analysis: After we have read the page in buf_page_io_complete try to
      find if the page is encrypted or corrupted. Encryption was determined
      by reading FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION field from FIL-header
      as a key_version. However, this field is not always zero even when
      encryption is not used. Thus, incorrect key_version could lead situation where
      decryption is tried to page that is not encrypted.
      
      Fix: We still read key_version information from FIL_PAGE_FILE_FLUSH_LSN_OR_KEY_VERSION
      field but also check if tablespace has encryption information before trying
      encrypt the page.
      bc323727
  2. 28 Oct, 2016 1 commit
  3. 26 Oct, 2016 1 commit
  4. 25 Oct, 2016 1 commit
  5. 24 Oct, 2016 6 commits
  6. 23 Oct, 2016 1 commit
  7. 22 Oct, 2016 2 commits
    • Vladislav Vaintroub's avatar
      Prepare XtraDB to be used with xtrabackup. · de5646f1
      Vladislav Vaintroub authored
      The changes are deliberately kept minimal
      
      - some functions are made global instead of static (they will be used in
      xtrabackup later on)
      
      - functions got additional parameter, deliberately unused for now :
        fil_load_single_tablespaces
        srv_undo_tablespaces_init
      
      - Global variables added, also unused for now :
         srv_archive_recovery
         srv_archive_recovery_limit_lsn
         srv_apply_log_only
         srv_backup_mode
         srv_close_files
      
      - To make xtrabackup link with sql.lib on Windows, added some missing
        source files to sql.lib
      
      - Fixed os_thread_ret_t to be DWORD on Windows
      de5646f1
    • Vladislav Vaintroub's avatar
      8f5e3e2a
  8. 19 Oct, 2016 2 commits
  9. 16 Oct, 2016 1 commit
  10. 14 Oct, 2016 1 commit
    • Kristian Nielsen's avatar
      Remove unnecessary global mutex in parallel replication. · 50f19ca8
      Kristian Nielsen authored
      The function apply_event_and_update_pos() is called with the
      rli->data_lock mutex held. However, there seems to be nothing in the
      function actually needing the mutex to be held. Certainly not in the
      parallel replication case, where sql_slave_skip_counter is always 0
      since the non-zero case is handled by the SQL driver thread.
      
      So this patch makes parallel replication use a variant of
      apply_event_and_update_pos() without the need to take the
      rli->data_lock mutex. This avoids one contended global mutex for each
      event executed, which might improve performance on CPU-bound workloads
      somewhat.
      Signed-off-by: default avatarKristian Nielsen <knielsen@knielsen-hq.org>
      50f19ca8
  11. 13 Oct, 2016 3 commits
  12. 12 Oct, 2016 4 commits
  13. 10 Oct, 2016 1 commit
  14. 30 Sep, 2016 2 commits
  15. 29 Sep, 2016 6 commits
  16. 28 Sep, 2016 6 commits