- 15 Jan, 2016 2 commits
-
-
Kristian Nielsen authored
Conflicts: sql/slave.cc
-
Kristian Nielsen authored
This occurs when replication stops with an error, domain-based parallel replication is used, and the GTID position contains more than one domain. Furthermore, it relates to the case where the SQL thread is restarted without first stopping the IO thread. In this case, the file/offset relay-log position does not correctly represent the slave's multi-dimensional position, because other domains may be far ahead of, or behind, the domain with the failing event. So the code reverts the relay log position back to the start of a relay log file that is known to be before all active domains. There was a bug that when the SQL thread was restarted, the rli->relay_log_state was incorrectly initialised from @@gtid_slave_pos. This position will likely be too far ahead, due to reverting the relay log position. Thus, if the replication fails again after the SQL thread restart, the rli->restart_gtid_pos might be updated incorrectly. This in turn would cause a second SQL thread restart to replicate from the wrong position, if the IO thread was still left running. The fix is to initialise rli->relay_log_state from @@gtid_slave_pos only when we actually purge and re-fetch relay logs from the master, not at every SQL thread start. A related problem is the use of sql_slave_skip_counter to resolve replication failures in this kind of scenario. Since the slave position is multi-dimensional, sql_slave_skip_counter can not work properly - it is indeterminate exactly which event is to be skipped, and is unlikely to work as expected for the user. So make this an error in the case where domain-based parallel replication is used with multiple domains, suggesting instead the user to set @@gtid_slave_pos to reliably skip the desired event.
-
- 14 Jan, 2016 1 commit
-
-
Vladislav Vaintroub authored
-
- 05 Jan, 2016 1 commit
-
-
Jan Lindström authored
MDEV-9359: encryption.create_or_replace fails sporadically in buildbot: failing assertion: mutex->magic_n == MUTEX_MAGIC_N Make sure that encryption threads mutex is initialized before starting encryption threads.
-
- 30 Dec, 2015 3 commits
-
-
Vladislav Vaintroub authored
-
Vladislav Vaintroub authored
-
Vladislav Vaintroub authored
Fix process handle leak in buildbot. GenerateConsoleCtrlEvent sent to non-existing process will add a process handle to this non-existing process to console host process conhost.exe
-
- 29 Dec, 2015 9 commits
-
-
Alexander Barkov authored
-
Alexander Barkov authored
-
Alexander Barkov authored
as it's needed for Cassandra in 10.0.
-
Alexander Barkov authored
-
Alexander Barkov authored
-
Alexander Barkov authored
-
Sergey Vojtovich authored
Provided IBM System Z have outdated compiler version, which supports gcc sync builtins but not gcc atomic builtins. It also has weak memory model. InnoDB attempted to verify if __sync_lock_test_and_set() is available by checking IB_STRONG_MEMORY_MODEL. This macro has nothing to do with availability of __sync_lock_test_and_set(), the right one is HAVE_ATOMIC_BUILTINS.
-
Sergey Vojtovich authored
Provided IBM System Z have outdated compiler version, which supports gcc sync builtins but not gcc atomic builtins. It also has weak memory model. InnoDB attempted to verify if __sync_lock_test_and_set() is available by checking IB_STRONG_MEMORY_MODEL. This macro has nothing to do with availability of __sync_lock_test_and_set(), the right one is HAVE_ATOMIC_BUILTINS.
-
Alexander Barkov authored
-
- 27 Dec, 2015 1 commit
-
-
Sergey Vojtovich authored
Provided IBM System Z have outdated compiler version, which supports gcc sync builtins but not gcc atomic builtins. It also has weak memory model. InnoDB attempted to verify if __sync_lock_test_and_set() is available by checking IB_STRONG_MEMORY_MODEL. This macro has nothing to do with availability of __sync_lock_test_and_set(), the right one is HAVE_ATOMIC_BUILTINS.
-
- 24 Dec, 2015 1 commit
-
-
Vladislav Vaintroub authored
-
- 23 Dec, 2015 6 commits
-
-
Nirbhay Choubey authored
-
Sergei Golubchik authored
innodb 32-bit funcs_1 embedded
-
Sergei Golubchik authored
-
Nirbhay Choubey authored
-
Monty authored
For now, only if ccache is installed with symlinks in /usr/lib64/ccache
-
Monty authored
Fixed by adding HA_ERR_INFO as a informational warning to by used by MyISAM This is used to inform when we create a backup copy of the data file. Also improved informational messages when creating backup copies of data and index files
-
- 22 Dec, 2015 9 commits
-
-
Nirbhay Choubey authored
-
Nirbhay Choubey authored
A deadlock can occur when the wsrep applier thread while executing FLUSH TABLES waits for MDL lock owned by other local transactions, which in turn are waiting for commit order if their seqno comes after one assigned to FLUSH TABLES. Fixed by making sure that the wsrep applier thread while executing FLUSH TABLES does not wait for table share(s) to be removed from table definition cache.
-
Nirbhay Choubey authored
Addendum: Save thd's server_status & option_bits before setting the thread specific pointer.
-
Sergey Vojtovich authored
Adjust systemd files to enable CAP_IPC_LOCK to allow rootless mlockall (triggered by memlock option). This is amended version of a patch originally submitted by Daniel Black.
-
Sergey Vojtovich authored
Set umask so that newly created file is not readable by others. This is a quick fix to close security gap. To be replaced by MDEV-8375 - passwordless root login.
-
Sergey Vojtovich authored
Allow absolute paths for INSTALL_*DIR.
-
Sergei Golubchik authored
-
Sergei Golubchik authored
binlog_savepoint_rollback() should not try to truncate a binlog unless binlog_savepoint_set has actually remembered the position to truncate to.
-
Sergei Golubchik authored
Note: some tests fail, just as they failed before the merge!
-
- 21 Dec, 2015 7 commits
-
-
Sergei Golubchik authored
NOT NULL constraint must be checked *after* the BEFORE triggers. That is for INSERT and UPDATE statements even NOT NULL fields must be able to store a NULL temporarily at least while BEFORE INSERT/UPDATE triggers are running.
-
Sergei Golubchik authored
* move common code to a new set_bad_null_error() function * move repeated comparison out of the loop * remove unused code * unused method Table_triggers_list::set_table * redundant condition (if (table) after table was dereferenced) * add an assert
-
Sergei Golubchik authored
-
Sergei Golubchik authored
because it's locked for innodb part of SHOW STATUS, which can happen in read-only mode too.
-
Sergei Golubchik authored
incorrect option name and doing ALTER TABLE under read-only: the test "passed" in 10.0 only because $restart_parameters was first implemented in 10.1
-
Sergei Golubchik authored
-
Sergei Golubchik authored
-