1. 12 Apr, 2018 1 commit
    • Jan Lindström's avatar
      MDEV-12632: Source and destination overlap in memcpy,... · 9c42b903
      Jan Lindström authored
      MDEV-12632: Source and destination overlap in memcpy, encryption.innodb-discard-import-change fails in buildbot with valgrind
      
      Problem was that if tablespace was encrypted we try to copy
      also page 0 from read buffer to write buffer that are in
      that case the same memory area.
      
      fil_iterate
      	When tablespace is encrypted or compressed its
              first page (i.e. page 0) is not encrypted or
      	compressed and there is no need to copy buffer.
      9c42b903
  2. 11 Apr, 2018 2 commits
    • Jan Lindström's avatar
      MDEV-12903: encryption.innodb_encryption_discard_import fails in buildbot with FOUND vs NOT FOUND · 91245909
      Jan Lindström authored
      Wait until rotation has ended and shutdown before grep to make sure
      that dirty pages are on datafiles.
      91245909
    • Marko Mäkelä's avatar
      MDEV-15832 With innodb_fast_shutdown=3, skip the rollback of connected transactions · dd127799
      Marko Mäkelä authored
      row_undo_step(): If innodb_fast_shutdown=3 has been requested,
      abort the rollback of any non-DDL transactions. Starting with
      MDEV-12323, we aborted the rollback of recovered transactions. The
      transactions would be rolled back on subsequent server startup.
      
      trx_roll_report_progress(): Renamed from trx_roll_must_shutdown(),
      now that the shutdown check has been moved to the only caller.
      
      trx_commit_low(): Allow mtr=NULL for transactions that are aborted
      on rollback.
      
      trx_rollback_finish(): Clean up aborted transactions to avoid
      assertion failures and memory leaks on shutdown. This code was
      previously in trx_rollback_active().
      
      trx_rollback_to_savepoint_low(), trx_rollback_for_mysql_low():
      Remove some redundant assertions.
      dd127799
  3. 10 Apr, 2018 19 commits
  4. 09 Apr, 2018 4 commits
    • Otto Kekäläinen's avatar
      79803648
    • Eugene Kosov's avatar
      remove dead code · 1513630d
      Eugene Kosov authored
      1513630d
    • Marko Mäkelä's avatar
      MDEV-15364 FOREIGN CASCADE operations in system versioned referenced tables · 0c8d6fd6
      Marko Mäkelä authored
      Merge pull request #667
      0c8d6fd6
    • Marko Mäkelä's avatar
      MDEV-13603 innodb_fast_shutdown=0 may fail to purge all history · 5a9e7bc6
      Marko Mäkelä authored
      srv_purge_should_exit(): Remove the parameter n_purged.
      If we happened to have n_purged==0 while some transaction was still
      active, and then that transaction was added to the history list,
      we were prematurely stopping the purge. It is more appropriate to
      first check for trx_sys.any_active_transactions() == 0
      (this count can only decrease during shutdown) and then for
      trx_sys.history_size() == 0 (that count typically decreases, but
      can increase when any remaining active transactions are committed
      or rolled back).
      
      innodb.dml_purge: Remove a server restart, and explicitly wait for
      purge, and use FLUSH TABLE FOR EXPORT to read the file contents.
      This will make the test run faster, easier to debug, and also
      allow it to run with --embedded. This might also help repeat
      MDEV-11802 better. The issue MDEV-13603 remains will remain tested
      by innodb.table_flags.
      5a9e7bc6
  5. 08 Apr, 2018 3 commits
    • Marko Mäkelä's avatar
      Minor clean-up of purge code · df44e75b
      Marko Mäkelä authored
      purge_sys_t::n_submitted: Document that it is only accessed by
      srv_purge_coordinator_thread.
      
      purge_sys_t::n_completed: Exclusively use my_atomic access.
      
      srv_task_execute(): Simplify the code.
      
      srv_purge_coordinator_thread(): Test the cheaper condition first.
      
      trx_purge(): Atomically access purge_sys.n_completed.
      Remove some code duplication.
      
      trx_purge_wait_for_workers_to_complete(): Atomically access
      purge_sys.n_completed. Remove an unnecessary local variable.
      
      trx_purge_stop(): Remove a redundant assignment.
      df44e75b
    • Marko Mäkelä's avatar
      Make my_atomic_*lint type-safe · 0f6186c5
      Marko Mäkelä authored
      0f6186c5
    • Marko Mäkelä's avatar
      MDEV-12266 fixup: Fix bug in row_ins_sec_index_entry() · 8beeeddd
      Marko Mäkelä authored
      row_ins_sec_index_entry(): Compare a pointer to fil_system.sys_space,
      not to a numeric constant. This code was recently changed in MDEV-13637,
      and the condition was essentially disabled, potentially causing the
      change buffer to grow uncontrollably when something is inserted into
      a table that has secondary indexes and resides in the system tablespace.
      
      Thanks to Daniel Black for pointing out that clang 7 flagged a warning
      for the comparison of a pointer to an integer.
      
      row_import_for_mysql(): Fix a possible compiler warning.
      8beeeddd
  6. 07 Apr, 2018 2 commits
  7. 06 Apr, 2018 4 commits
  8. 05 Apr, 2018 5 commits