1. 29 Aug, 2016 1 commit
    • Monty's avatar
      Better SHOW PROCESSLIST for replication · 96e95b54
      Monty authored
      - When waiting for events, start time is now counted from start of wait
      - Instead of having "Connect" as "Command" for all replication threads we
        now have:
        - Slave_IO for Slave thread reading relay log
        - Slave_SQL for slave executing SQL commands or distribution queries to
          Slave workers
        - Slave_worker for slave threads executin SQL commands in parallel replication
      96e95b54
  2. 27 Aug, 2016 18 commits
  3. 26 Aug, 2016 1 commit
    • Alexander Kuleshov's avatar
      Call profiling.restart() and profiling.reset() only if profiling is enabled · e7f54437
      Alexander Kuleshov authored
      in other case we will get:
      
      ../alex/dev/server/sql/sql_class.cc: In member function ‘void THD::free_connection()’:
      ../server/sql/sql_class.cc:1664:3: error: ‘profiling’ was not declared in this scope
         profiling.restart();                          // Reset profiling
            ^~~~~~~~~
      
      ../server/sql/sql_class.cc: In member function ‘void THD::reset_for_reuse()’:
      ../server/sql/sql_class.cc:1689:3: error: ‘profiling’ was not declared in this scope
        profiling.reset();
             ^~~~~~~~~
      
      errors.
      e7f54437
  4. 19 Aug, 2016 2 commits
  5. 18 Aug, 2016 1 commit
  6. 08 Aug, 2016 2 commits
    • Nirbhay Choubey's avatar
      MDEV-10320: NO-OP ALTER TABLE on temporary tables getting · 69052ed0
      Nirbhay Choubey authored
      .. logged under row binlog format
      
      In the early stages of ALTER TABLE execution, the implementation
      checks whether its a NOOP (alter_info->flags == 0), and if so,
      it returns after logging the command to binary log. The logging,
      however, was done unconditionally.
      
      Fixed by skipping the logging for temporary tables when under row
      based replication.
      69052ed0
    • Nirbhay Choubey's avatar
      MDEV-10216: Assertion `strcmp(share->unique_file_name,filename) || · df9b4554
      Nirbhay Choubey authored
      .. share->last_version' failed in myisam/mi_open.c:67: test_if_reopen
      
      During the RENAME operation since the renamed temporary table is also
      opened and added to myisam_open_list/maria_open_list, resetting the
      last_version at the end of operation (HA_EXTRA_PREPARE_FOR_RENAME)
      will cause an assertion failure when a subsequent query tries to open
      an additional temporary table instance and thus attempts to reuse it
      from the open table list.
      
      This commit fixes the issue by skipping flush/close operations executed
      toward the end of ALTER for temporary tables. It also enables a shortcut
      for simple ALTERs (like rename, disable/enable keys) on temporary
      tables.
      
      As safety checks, added some assertions at code points that should not
      be hit for temporary tables.
      df9b4554
  7. 05 Aug, 2016 4 commits
  8. 04 Aug, 2016 1 commit
  9. 03 Aug, 2016 2 commits
  10. 30 Jul, 2016 3 commits
  11. 25 Jul, 2016 1 commit
    • Kristian Nielsen's avatar
      MDEV-10271: Stopped SQL slave thread doesn't print a message to error log like IO thread does · fb076581
      Kristian Nielsen authored
      Make the slave SQL thread always output to the error log the message "Slave
      SQL thread exiting, replication stopped in ..." whenever it previously
      outputted "Slave SQL thread initialized, starting replication ...".
      
      Before this patch, it was somewhat inconsistent in which cases the message
      would be output and in which not, depending on the exact time and cause of
      the condition that caused the SQL thread to stop.
      fb076581
  12. 21 Jul, 2016 1 commit
  13. 04 Jul, 2016 2 commits
  14. 03 Jul, 2016 1 commit
    • Alexander Barkov's avatar
      Removing duplicate code in double-to-longlong conversion. · 59ec3973
      Alexander Barkov authored
      Adding Converter_double_to_longlong and reusing it in:
      1. Field_longlong::store(double nr)
      2. Field_double::val_int()
      3. Item::val_int_from_real()
      4. Item_dyncol_get::val_int()
      As a good side efferct, now overflow in conversion in the mentioned
      val_xxx() methods return exactly the same warning.
      59ec3973