1. 10 Sep, 2017 1 commit
    • Igor Babaev's avatar
      Fixed the bug mdev-13710. · 61074d04
      Igor Babaev authored
      This patch corrects the code of the patch for mdev-13369 that
      introduced the splitting technique when using materialized
      derived tables / views with GROUP BY. The second actual parameters
      of the call of the method JOIN::reoptimize() in the function
      JOIN::push_splitting_cond_into_derived() was calculated incorrectly.
      This could cause different failures for queries using derived tables
      or views with GROUP BY when their FROM lists contained empty or
      single-row tables.
      61074d04
  2. 08 Sep, 2017 7 commits
    • Igor Babaev's avatar
      Fixed the bug mdev-13709. · 5e4aa1a2
      Igor Babaev authored
      Currently condition pushdown into materialized views / derived tables
      is not implemented yet (see mdev-12387) and grouping views are
      optimized early when subqueries are converted to semi-joins in
      convert_join_subqueries_to_semijoins(). If a subquery that is converted
      to a semi-join uses a grouping view this view is optimized in two phases.
      For such a view V only the first phase of optimization is done after
      the conversion of subqueries of the outer join into semi-joins.
      At the same time the reference of the view V appears in the join
      expression of the outer join. In fixed code there was an attempt to push
      conditions into this view and to optimize it after this. This triggered
      the second phase of the optimization of the view and it was done
      prematurely. The second phase of the optimization for the materialized
      view is supposed to be called after the splitting condition is pushed
      into the view in the call of JOIN::improve_chosen_plan for the outer
      join.
      
      The fix blocks the attempt to push conditions into splittable views
      if they have been already partly optimized and the following
      optimization for them.
      
      The test case of the patch shows that the code for mdev-13369
      basically supported the splitting technique for materialized views /
      derived tables.
      
      The patch also replaces the name of the state JOIN::OPTIMIZATION_IN_STAGE_2
      for JOIN::OPTIMIZATION_PHASE_1_DONE and fixes a bug in
      TABLE_LIST::fetch_number_of_rows()
      5e4aa1a2
    • Marko Mäkelä's avatar
      Merge 10.2 into bb-10.2-ext · fb14761d
      Marko Mäkelä authored
      fb14761d
    • Marko Mäkelä's avatar
    • Marko Mäkelä's avatar
      Adjust the imported innodb.alter_crash test for MariaDB · 672590af
      Marko Mäkelä authored
      trx_undo_assign_undo(): Restore the fault injection.
      672590af
    • Marko Mäkelä's avatar
      MDEV-13626 Merge InnoDB test cases from MySQL 5.7 (part 1) · 13d4dfd0
      Marko Mäkelä authored
      Import the test innodb.alter_crash
      13d4dfd0
    • Marko Mäkelä's avatar
      Make a test more robust · 95f60269
      Marko Mäkelä authored
      The redo log is divided into 512-byte blocks. Sometimes, some of
      the strings end up at a block boundary and will not be found.
      Look for only one match.
      95f60269
    • Vladislav Vaintroub's avatar
  3. 07 Sep, 2017 7 commits
  4. 06 Sep, 2017 9 commits
  5. 05 Sep, 2017 2 commits
  6. 04 Sep, 2017 4 commits
    • andrelkin's avatar
      MDEV-12731 · 8592ff9e
      andrelkin authored
      Was reported as 'rpl.rpl_gtid_stop_start fails with Valgrind in buildbot and outside'.
      The 'Conditional jump or move depends on uninitialized value' valgrind complaint is valid
      and means THD::m_current_stage_key that is not initialized indeed by constructor.
      
      Fixed with its initialization added to the initializer list of
      THD::THD.  Double checked with mysql to have found a similar fixes for
      the very same issue which was discovered after P_S merge to Maria
      (60589aee where the member is introduced) had been done.
      8592ff9e
    • Andrei Elkin's avatar
      Post-push for MDEV-13437 · 641baa5d
      Andrei Elkin authored
      A new $MYSQLD_LAST_CMD evaluation was too late in case --manual-gdb.
      Now it is done before the server restart type branches which is safe
      and the args value has been fully computed by the new point of
      evaluation.
      641baa5d
    • Oleksandr Byelkin's avatar
      MDEV-10972: Insert from select / view / union -- repeatable crash in 10.1, 10.2 Linux/Mac/Windows · 17589989
      Oleksandr Byelkin authored
      save thd->select_number between parsing and executions (in case it was not complete executed due to errors (for example epsent table))
      17589989
    • Marko Mäkelä's avatar
      MDEV-13705 10.0.32 does not compile on architectures without 64-bit atomics · 05008999
      Marko Mäkelä authored
      This is a backport of the following:
      
      MDEV-13009 10.1.24 does not compile on architectures without 64-bit atomics
      
      Add a missing #include "sync0types.h" that was removed in MDEV-12674.
      05008999
  7. 03 Sep, 2017 1 commit
  8. 01 Sep, 2017 8 commits
  9. 31 Aug, 2017 1 commit