1. 14 Aug, 2015 3 commits
    • Nirbhay Choubey's avatar
      MDEV-8617: Multiple galera tests failures with --ps-protocol · e9963041
      Nirbhay Choubey authored
      (Additional fixes in 10.0-galera branch)
      * Reset THD's PS members before returning when node is
      not ready.
      * Update galera_suspend_slave.test
      e9963041
    • Nirbhay Choubey's avatar
      8a18bb96
    • Nirbhay Choubey's avatar
      MDEV-8617: Multiple galera tests failures with --ps-protocol · c18e0dab
      Nirbhay Choubey authored
      In galera cluster, when myisam replication is enabled
      (wsrep_replicate_myisam=ON), DML statements are replicated
      in open_tables(). However, in case of prepared statements,
      for an INSERT, open_tables() gets invoked twice. Once for
      COM_STMT_PREPARE (to validate and prepare INSERT) and later
      for COM_STMT_EXECUTE. As a result, the command gets replicated
      twice. Same happens for REPLACE, UPDATE and DELETE commands.
      Fixed by adding a check to not replicate during 'prepare'
      phase. Also changed the order of conditions to make it more
      efficient. Lastly, in order to support wsrep_dirty_reads, made
      changes to allow COM_STMT_XXX commands to continue past initial
      check even when wsrep is not ready.
      c18e0dab
  2. 12 Aug, 2015 1 commit
    • Nirbhay Choubey's avatar
      MDEV-8598 : Failed MySQL DDL commands and Galera replication · e998dffd
      Nirbhay Choubey authored
      RENAME TABLE, unlike other DDLs, was getting replicated before
      the access check was performed. As a result, the command could
      get get replicated and thus executed on other nodes, even if it
      fails on the originating node due to permission issues. Fixed by
      moving the logic to check user privileges before replicating the
      command.
      e998dffd
  3. 08 Aug, 2015 1 commit
  4. 07 Aug, 2015 1 commit
  5. 06 Aug, 2015 1 commit
  6. 05 Aug, 2015 3 commits
  7. 04 Aug, 2015 8 commits
    • Sergei Golubchik's avatar
      Merge branch 'bb-10.0-jan' into 10.0 · 1610c428
      Sergei Golubchik authored
      5.5 with our InnoDB changes
      1610c428
    • Sergei Golubchik's avatar
      correct the NULL-pointer test · fa51f70d
      Sergei Golubchik authored
      fa51f70d
    • Sergei Golubchik's avatar
      after-merge fixes · 006ffca5
      Sergei Golubchik authored
      006ffca5
    • Kristian Nielsen's avatar
      Merge fix of embedded server build. · d6d54584
      Kristian Nielsen authored
      d6d54584
    • Kristian Nielsen's avatar
      Fix embedded server build · 5ca061e6
      Kristian Nielsen authored
      5ca061e6
    • Kristian Nielsen's avatar
      Merge MDEV-8302 into 10.0 · e8e2ef47
      Kristian Nielsen authored
      e8e2ef47
    • Kristian Nielsen's avatar
      MDEV-8302: Duplicate key with parallel replication · 9b9c5e89
      Kristian Nielsen authored
      This bug is essentially another variant of MDEV-7458.
      
      If a transaction conflict caused a deadlock kill of T2 in record_gtid()
      during commit, the code would do a rollback _before_ running
      rgi->unmark_start_commit(). This creates a race where following transactions
      could start too early (before T2 has completed its transaction retry). This
      in turn could lead to replication failure, if there was a conflict that
      caused eg. duplicate key error or similar.
      
      The fix is to remove these rollbacks (in Query_log_event::do_apply_event()
      and Xid_log_event::do_apply_event(). They seem out-of-place; code in
      log_event.cc generally does not roll back on error, this is handled higher
      up.
      
      In addition, because of the extreme difficulty of reproducing bugs like
      MDEV-7458 and MDEV-8302, this patch adds some extra precations to try to
      detect (in debug builds) or prevent (in release builds) similar bugs.
      ha_rollback_trans() will now call unmark_start_commit() if needed (and
      assert in debug build when a caller does rollback without unmark first).
      
      We also add an extra check for thd->killed() so that we avoid doing
      mark_start_commit() if we already have a pending deadlock kill.
      
      And we add a missing unmark_start_commit() call in the error case, found by
      the above assertion.
      9b9c5e89
    • Jan Lindström's avatar
      Fix merge error. · d71b5840
      Jan Lindström authored
      d71b5840
  8. 03 Aug, 2015 12 commits
  9. 01 Aug, 2015 7 commits
  10. 31 Jul, 2015 3 commits