1. 12 Mar, 2015 5 commits
  2. 11 Mar, 2015 6 commits
  3. 10 Mar, 2015 3 commits
  4. 08 Mar, 2015 2 commits
  5. 07 Mar, 2015 7 commits
  6. 06 Mar, 2015 7 commits
  7. 05 Mar, 2015 3 commits
  8. 04 Mar, 2015 7 commits
    • Jan Lindström's avatar
      MDEV-7061: Augment innochecksum to give insight of fragmentation · 143f5d91
      Jan Lindström authored
      Merged https://github.com/facebook/mysql-5.6/commit/615dd07d900ce08948340b6c11e37fd1d2a91065 from https://github.com/facebook/mysql-5.6/
      authored by rongrong. Removed C++11 requirement by using
      std::map instead of std::unordered_set.
      
      Add analysis to leaf pages to estimate how fragmented an index is
      and how much benefit we can get out of defragmentation.
      143f5d91
    • Kristian Nielsen's avatar
      after-merge fixes · 2e4dc5a3
      Kristian Nielsen authored
      2e4dc5a3
    • Kristian Nielsen's avatar
      Merge MDEV-6589 and MDEV-6403 into 10.1. · 95d72088
      Kristian Nielsen authored
      Conflicts:
      	sql/log.cc
      	sql/rpl_rli.cc
      	sql/sql_repl.cc
      95d72088
    • Kristian Nielsen's avatar
      3ef0b9b2
    • Kristian Nielsen's avatar
      MDEV-6403: Temporary tables lost at STOP SLAVE in GTID mode if master has not... · 78c74dbe
      Kristian Nielsen authored
      MDEV-6403: Temporary tables lost at STOP SLAVE in GTID mode if master has not rotated binlog since restart
      
      The binlog contains specially marked format description events to mark
      when a master restart happened (which could have caused temporary
      tables to be silently dropped). Such events also cause slave to close
      temporary tables.
      
      However, there was a bug that if after this, slave re-connects to the
      master in GTID mode, the master can send an old format description
      event again. If temporary tables are closed when such event is seen
      for the second time, it might drop temporary tables created after that
      event, and cause replication failure.
      
      With this patch, the restart flag of the format description event is
      cleared by the master when it is sent to the slave in a subsequent
      connection, to avoid the errorneous temp table close.
      78c74dbe
    • Kristian Nielsen's avatar
      MDEV-6589: Incorrect relay log start position when restarting SQL thread after... · ad0d203f
      Kristian Nielsen authored
      MDEV-6589: Incorrect relay log start position when restarting SQL thread after error in parallel replication
      
      The problem occurs in parallel replication in GTID mode, when we are using
      multiple replication domains. In this case, if the SQL thread stops, the
      slave GTID position may refer to a different point in the relay log for each
      domain.
      
      The bug was that when the SQL thread was stopped and restarted (but the IO
      thread was kept running), the SQL thread would resume applying the relay log
      from the point of the most advanced replication domain, silently skipping all
      earlier events within other domains. This caused replication corruption.
      
      This patch solves the problem by storing, when the SQL thread stops with
      multiple parallel replication domains active, the current GTID
      position. Additionally, the current position in the relay logs is moved back
      to a point known to be earlier than the current position of any replication
      domain. Then when the SQL thread restarts from the earlier position, GTIDs
      encountered are compared against the stored GTID position. Any GTID that was
      already applied before the stop is skipped to avoid duplicate apply.
      
      This patch should have no effect if multi-domain GTID parallel replication is
      not used. Similarly, if both SQL and IO thread are stopped and restarted, the
      patch has no effect, as in this case the existing relay logs are removed and
      re-fetched from the master at the current global @@gtid_slave_pos.
      ad0d203f
    • Sergey Vojtovich's avatar