1. 22 Apr, 2016 4 commits
    • Sergey Vojtovich's avatar
      MDEV-9283 - Debian: the Lintian complains about "shlib-calls-exit" in · 250a89cf
      Sergey Vojtovich authored
                  ha_oqgraph.so
      
      exit() was called by Judy error handler. This patch overrides Judy error handler
      so that it calls abort() instead of exit().
      250a89cf
    • Sergey Vojtovich's avatar
      MDEV-8889 - Assertion `next_insert_id == 0' failed in handler::ha_external_lock · 994030c0
      Sergey Vojtovich authored
      There was a race condition between delayed insert thread and connection thread
      actually performing INSERT/REPLACE DELAYED. It was triggered by concurrent
      INSERT/REPLACE DELAYED and statements that flush the same table either
      explicitely or implicitely (like FLUSH TABLE, ALTER TABLE, ...).
      
      This race condition was caused by a gap in delayed thread shutdown logic,
      which allowed concurrent connection running INSERT/REPLACE DELAYED to change
      essential data consequently leaving table in semi-consistent state.
      
      Specifically query thread could decrease "tables_in_use" reference counter in
      this gap, causing delayed insert thread to shutdown without releasing auto
      increment and table lock.
      
      Fixed by extending condition so that delayed insert thread won't shutdown
      until there're locked tables.
      
      Also removed volatile qualifier from tables_in_use and stacked_inserts since
      they're supposed to be protected by mutexes.
      994030c0
    • Jan Lindström's avatar
      Improve error diagnostics on I/O errors. If node->name is NULL · 298e1d3f
      Jan Lindström authored
      try to use space->name instead.
      298e1d3f
    • Jan Lindström's avatar
      MDEV-9918: [ERROR] mysqld got signal 11 during ALTER TABLE `name` COLUMN ADD · 628bc576
      Jan Lindström authored
      Problem was that in-place online alter table was used on a table
      that had mismatch between MySQL frm file and InnoDB data dictionary.
      Fixed so that traditional "Copy" method is used if the MySQL frm
      and InnoDB data dictionary is not consistent.
      628bc576
  2. 21 Apr, 2016 1 commit
  3. 20 Apr, 2016 1 commit
    • Sergey Vojtovich's avatar
      MDEV-9281 - Debian: the Lintian complains about "shlib-calls-exit" in handlersocket.so · 072ca71d
      Sergey Vojtovich authored
      MDEV-9278 - Debian: the Lintian complains about "shlib-calls-exit" in ha_spider.so
      
      Handlersocket handles errors in a way that it aborts program execution. In most
      cases it is done via abort(). One exception was host/service resolution failure,
      which was aborted with exit().
      
      As a workaround replaced this exit() with abort() for symmetry with other error
      handling.
      072ca71d
  4. 04 Apr, 2016 1 commit
  5. 24 Mar, 2016 1 commit
  6. 21 Mar, 2016 11 commits
  7. 18 Mar, 2016 1 commit
  8. 17 Mar, 2016 3 commits
  9. 16 Mar, 2016 1 commit
  10. 15 Mar, 2016 1 commit
  11. 12 Mar, 2016 1 commit
    • Elena Stepanova's avatar
      MDEV-9713 Sporadic test failure: sys_vars.innodb_buffer_pool_load_now_basic · 0125e588
      Elena Stepanova authored
      It could have happened that one of previous tests already executed
      buffer pool dump and set the status variable value, so when it's been
      checked, the check passes too early, before the dump starts and
      the dump file is created. See more detailed explanation in MDEV-9713.
      
      Fixed by waiting for the current time to change in case it equals
      to the timestamp in the status variable, and then checking that
      the status variable not only matches the expected pattern, but also
      differs from the previous value, whatever it was.
      0125e588
  12. 11 Mar, 2016 1 commit
  13. 10 Mar, 2016 1 commit
    • Sergey Vojtovich's avatar
      Fixed false errors returned by logrotate script · 8942824a
      Sergey Vojtovich authored
      Logrotate script assumed an error if mysqladmin failed to connect to server
      and there's mysqld process exists. However there can be non-system instance of
      mysqld running (e.g. in docker) making this assumption wrong.
      
      Check pid file existance instead.
      8942824a
  14. 09 Mar, 2016 1 commit
  15. 08 Mar, 2016 1 commit
  16. 07 Mar, 2016 1 commit
  17. 04 Mar, 2016 1 commit
  18. 03 Mar, 2016 1 commit
    • Kristian Nielsen's avatar
      MDEV-9595: Shutdown takes forever with many replication channels · f8251911
      Kristian Nielsen authored
      There was a race between end_slave() and cleanup code at the end of
      handle_slave_sql(). This could cause access to master_info_index and
      global_rpl_thread_pool after they had been freed.
      
      Fix by skipping that cleanup if server shutdown is in progress, as is done
      in other parts of the code as well (the cleanup, which stops worker threads
      that are not needed anymore, is redundant anyway when the server is shutting
      down).
      f8251911
  19. 01 Mar, 2016 1 commit
  20. 29 Feb, 2016 1 commit
  21. 26 Feb, 2016 1 commit
    • Elena Stepanova's avatar
      MDEV-4070 sys_vars.secure_file_priv fails sporadically if it's executed with --mem · c29e450e
      Elena Stepanova authored
      The test created a file in location relative to the datadir
      (a few levels above datadir).
      The file was created by MariaDB server (via INTO OUTFILE), and
      later removed by mysqltest (via remove_file). The problem is that
      when the vardir is a symlink, MariaDB server and mysqltest can
      resolve such paths differently. MariaDB server would return back
      to where the symlink is located, while mysqltest would go above
      the real directory. For example, if the test is run with --mem,
      and /bld/5.5/mysql-test/var points at /dev/shm/var_auto_X, then
      SELECT INTO OUTFILE created a file in /bld/5.5/mysql-test , but
      remove_file would look for it in /dev/shm/.
      
      The test is re-written so that all paths are resolved in perl,
      the logic itself hasn't changed.
      c29e450e
  22. 25 Feb, 2016 1 commit
  23. 18 Feb, 2016 1 commit
  24. 17 Feb, 2016 2 commits