summaryrefslogtreecommitdiff
path: root/sql/wsrep_utils.cc
Commit message (Collapse)AuthorAgeFilesLines
* Merge 10.2 into 10.3Marko Mäkelä2020-08-261-1/+3
|\
| * MDEV-23483: Set Galera SST thd as system threadJan Lindström2020-08-251-1/+3
| | | | | | | | | | Revert change to MDL and set SST donor thread as a system thread. Joiner thread was already a system thread.
* | Merge 10.2 into 10.3Marko Mäkelä2019-05-141-1/+1
|\ \ | |/
| * Merge 10.1 into 10.2Marko Mäkelä2019-05-131-1/+1
| |\
| | * Merge branch '5.5' into 10.1Vicențiu Ciorbaru2019-05-111-1/+1
| | |
| | * MDEV-10442: "Address already in use" on restartNirbhay Choubey2017-12-181-1/+0
| | | | | | | | | | | | SST processes should inherit mysqld's process group.
* | | Merge bb-10.2-ext into 10.3Marko Mäkelä2017-09-011-0/+14
|\ \ \ | |/ /
| * | Merge 10.1 into 10.2Marko Mäkelä2017-08-311-0/+14
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For running the Galera tests, the variable my_disable_leak_check was set to true in order to avoid assertions due to memory leaks at shutdown. Some adjustments due to MDEV-13625 (merge InnoDB tests from MySQL 5.6) were performed. The most notable behaviour changes from 10.0 and 10.1 are the following: * innodb.innodb-table-online: adjustments for the DROP COLUMN behaviour change (MDEV-11114, MDEV-13613) * innodb.innodb-index-online-fk: the removal of a (1,NULL) record from the result; originally removed in MySQL 5.7 in the Oracle Bug #16244691 fix https://github.com/mysql/mysql-server/commit/377774689bf6a16af74182753fe950d514c2c6dd * innodb.create-index-debug: disabled due to MDEV-13680 (the MySQL Bug #77497 fix was not merged from 5.6 to 5.7.10) * innodb.innodb-alter-autoinc: MariaDB 10.2 behaves like MySQL 5.6/5.7, while MariaDB 10.0 and 10.1 assign different values when auto_increment_increment or auto_increment_offset are used. Also MySQL 5.6/5.7 exhibit different behaviour between LGORITHM=INPLACE and ALGORITHM=COPY, so something needs to be tested and fixed in both MariaDB 10.0 and 10.2. * innodb.innodb-wl5980-alter: disabled because it would trigger an InnoDB assertion failure (MDEV-13668 may need additional effort in 10.2)
| | * Merge remote-tracking branch 'origin/10.0-galera' into 10.1Jan Lindström2017-08-211-0/+14
| | |\
| | | * MW-366 Improved support for IPv6 networks - made mysqld and SST scripts to ↵Alexey Yurchenko2017-08-111-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | recognize []-escaped IPv6 addresses - pulled in latest Percona and MariaDB updates to SST scripts - instruct netcat and socat in wsrep_sst_xtrabackup-v2 to listen on IPv6 socket via sockopt parameter in the [sst] section of my.cnf In summary, wsrep_node_address and wsrep_sst_receive_address can now be set to IPv6 addresses escaped by []. Rsync SST works out ouf the box thanks to rsync daemon listening on both IPv4 and IPv6 sockets by default. For xtrabackup SST onver IPv6 one needs to set sockopt in the [sst] section of joiner's configuration file to ",pf=ip6" if using socat as a streamer or to "-6" if using netcat.
* | | | Enusure that my_global.h is included firstMichael Widenius2017-08-241-0/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | - Added sql/mariadb.h file that should be included first by files in sql directory, if sql_plugin.h is not used (sql_plugin.h adds SHOW variables that must be done before my_global.h is included) - Removed a lot of include my_global.h from include files - Removed include's of some files that my_global.h automatically includes - Removed duplicated include's of my_sys.h - Replaced include my_config.h with my_global.h
* | | Merge branch '10.1' into 10.2Sergei Golubchik2017-03-301-1/+1
|\ \ \ | |/ /
| * | Correct FSF addressiangilfillan2017-03-101-1/+1
| | |
* | | MDEV-10442: "Address already in use" on restartNirbhay Choubey2016-11-211-1/+0
| | | | | | | | | | | | SST processes should inherit mysqld's process group.
* | | Reuse THD for new user connectionsMonty2016-06-041-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | - To ensure that mallocs are marked for the correct THD, even if it's allocated in another thread, I added the thread_id to the THD constructor - Added st_my_thread_var to thr_lock_info_init() to avoid a call to my_thread_var - Moved things from THD::THD() to THD::init() - Moved some things to THD::cleanup() - Added THD::free_connection() and THD::reset_for_reuse() - Added THD to CONNECT::create_thd() - Added THD::thread_dbug_id and st_my_thread_var->dbug_id. These are needed to ensure that we have a constant thread_id used for debugging with a THD, even if it changes thread_id (=connection_id) - Set variables.pseudo_thread_id in constructor. Removed not needed sets.
* | Merge branch 'github/10.0-galera' into 10.1Sergei Golubchik2015-11-191-3/+90
|\ \ | |/
| * This commit fixesAlexey Yurchenko2015-09-091-3/+2
| | | | | | | | | | - errno handling in wsp::env::append() method, where error could be returned by mistake - return code of sst_prepare_other() when pthread_create() fails - it was returning positive error code which by convention is treated as success.
| * Refs codership/mysql-wsrep#141: this commitAlexey Yurchenko2015-09-091-2/+3
| | | | | | | | | | 1. Passes wsrep_sst_auth_value to SST scripts via WSREP_SST_OPT_AUTH envronmental variable, so it never appears on the command line 2. In mysqldump and xtrabackup* SST scripts which rely on MySQL authentication, instead of passing password on the command line, SST script sets MYSQL_PWD environment variable, so that password also never appears on the mysqldump/innobackupex command line.
| * Merge branch '5.5-galera' into 10.0-galeraNirbhay Choubey2015-09-091-3/+90
| |\
| | * This commit fixesAlexey Yurchenko2015-09-091-4/+3
| | | | | | | | | | | | | | | - errno handling in wsp::env::append() method, where error could be returned by mistake - return code of sst_prepare_other() when pthread_create() fails - it was returning positive error code which by convention is treated as success.
| | * Refs codership/mysql-wsrep#141: this commitAlexey Yurchenko2015-09-091-3/+91
| | | | | | | | | | | | | | | 1. Passes wsrep_sst_auth_value to SST scripts via WSREP_SST_OPT_AUTH envronmental variable, so it never appears on the command line 2. In mysqldump and xtrabackup* SST scripts which rely on MySQL authentication, instead of passing password on the command line, SST script sets MYSQL_PWD environment variable, so that password also never appears on the mysqldump/innobackupex command line.
| | * Refs #25 - made sure signals that may be set to ignored in mysqld were set ↵Alexey Yurchenko2015-05-041-1/+29
| | | | | | | | | | | | to default in the child process.
| | * Changes in wsrep_guess_ip()Nirbhay Choubey2015-02-241-16/+13
| | | | | | | | | | | | | | | * Changed loopback detection to be done via ifa->ifa_flags * Removed unused function wsrep_guess_address()
| | * Backported changes done in wsrep_guess_ip() from 10.1.Nirbhay Choubey2015-01-261-46/+29
| | |
| | * MDEV-6636 : Merged fixes for lp:1167368 and lp:1250805.Nirbhay Choubey2014-08-251-7/+4
| | |
| | * Merging revision 3839..3932 from codership-mysql/5.5.Nirbhay Choubey2014-01-091-18/+69
| | |
| | * Merge revisions 3907--3914 from lp:~codership/codership-mysql/5.5-23Jan Lindström2013-09-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ------------------------------------------------------------ revno: 3914 3kB/s | committer: Vladislav Klyachin <vladislav.klyachin@codership.com> branch nick: 5.5-23 timestamp: Thu 2013-09-12 15:00:46 +0400 message: References lp:1217653 - fix index-id evaluation of FOREIGN KEY, when referenced table without PRIMARY KEY ------------------------------------------------------------ revno: 3913 committer: Vladislav Klyachin <vladislav.klyachin@codership.com> branch nick: 5.5-23 timestamp: Wed 2013-09-11 13:58:02 +0400 message: References lp:1217653 - fix index-id evaluation of FOREIGN KEY, when referenced table without PRIMARY KEY ------------------------------------------------------------ revno: 3912 committer: Seppo Jaakola <seppo.jaakola@codership.com> branch nick: wsrep-5.5-23 timestamp: Fri 2013-09-06 13:13:48 +0300 message: References: lp:1212955 - releasing MDL after failed BEGIN and "SET AUTOCOMMIT" ------------------------------------------------------------ revno: 3911 committer: Seppo Jaakola <seppo.jaakola@codership.com> branch nick: wsrep-5.5-23 timestamp: Wed 2013-09-04 10:52:31 +0300 message: References: lp:1123233 - avoiding to set wsrep_seqno_changed for replaying transactions Note, also missing transactions don't declare seqno_changed anymore. Earlier they would have caused crash at wsrep_cleanup_transaction phase. ------------------------------------------------------------ revno: 3910 [merge] committer: Vladislav Klyachin <vladislav.klyachin@codership.com> branch nick: 5.5-23 timestamp: Tue 2013-09-03 15:27:02 +0400 message: References lp:1049599 - expose desync functionality to the client ------------------------------------------------------------ revno: 3909 committer: Seppo Jaakola <seppo.jaakola@codership.com> branch nick: wsrep-5.5-23 timestamp: Tue 2013-09-03 09:41:08 +0300 message: References: lp:1123233 - rollback for transaction which has not appended key information ------------------------------------------------------------ revno: 3908 committer: Vladislav Klyachin <vladislav.klyachin@codership.com> branch nick: 5.5-23 timestamp: Sun 2013-09-01 13:29:12 +0400 message: lp:1201893 - fix command for default IP address ------------------------------------------------------------ revno: 3907 committer: Seppo Jaakola <seppo.jaakola@codership.com> branch nick: wsrep-5.5-23 timestamp: Thu 2013-08-29 12:16:42 +0300 message: References: lp:1212955 - releasing transactional MDL locks after commit failures (e.g. certification failure).
| | * Merged FreeBSD compatibility changes (up to revision 3893 in ↵Seppo Jaakola2013-08-071-0/+2
| | | | | | | | | | | | lp:~codership/codership-mysql/5.5-23)
| | * References: MDEV-4572 - merge with lp:codership-mysql/5.5-23 revisions ↵Seppo Jaakola2013-05-251-4/+2
| | | | | | | | | | | | 3858..3867
| | * merged with codership-mysql up to revision 3839Seppo Jaakola2013-02-051-2/+3
| | | | | | | | | | | | | | | bzr merge -r3810..3839 lp:codership-mysql/5.5
| | * remerging wsrep files from lp:codership-mysqlSeppo Jaakola2013-02-051-0/+467
| | |
| | * re-merging wsrep files from lp:codership-mysqlSeppo Jaakola2013-02-051-468/+0
| | |
| | * References: lp:1066784 - Merged revisions 3810-3827 from lp:codership-mysqlSeppo Jaakola2012-11-281-2/+3
| | |
| | * Merged in change sets 3772-3779 from lp:codership-mysql/5.5mariadb-galera-5.5.25Seppo Jaakola2012-08-301-39/+58
| | |
| | * References lp:1034621 - Merge up to mysql-5.5.25 levelSeppo Jaakola2012-08-091-1/+2
| | | | | | | | | | | | | | | | | | merged codership-mysql/5.5 revisions: bzr diff -r3759..3767 merged codership-mysql/5.5 revisions: bzr diff -r3768..3771
| | * Merged changes from lp:codership-mysql up to rev 3743Seppo Jaakola2012-04-261-1/+1
| | | | | | | | | | | | | | | | | | | | | -r3725..3737 -r3738..3740 -r3741..3743
| | * Added wsrep specific filesSeppo Jaakola2012-04-261-0/+447
| |
| * Refs codership/mysql-wsrep#33Alexey Yurchenko2015-05-081-56/+1
| | | | | | | | | | | | | | 1. factored XID-related functions to a separate wsrep_xid.cc unit. 2. refactored them to take refrences instead of pointers where appropriate 3. implemented wsrep_get/set_SE_position to take wsrep_uuid_t and wsrep_seqno_t instead of XID 4. call wsrep_set_SE_position() in wsrep_sst_received() to reinitialize SE checkpoint after SST was received, avoid assert() in setting code by first checking current position.
| * Refs #25 - made sure signals that may be set to ignored in mysqld were set ↵Alexey Yurchenko2015-05-081-1/+29
| | | | | | | | to default in the child process.
| * Changes in wsrep_guess_ip()Nirbhay Choubey2015-02-271-16/+13
| | | | | | | | | | * Changed loopback detection to be done via ifa->ifa_flags * Removed unused function wsrep_guess_address()
* | MDEV-8975: 10.1 Fails To Join Existing Galera ClusterNirbhay Choubey2015-11-051-1/+2
| | | | | | | | | | | | | | | | During the process of guessing the IP address, if bind-address is INADDR_ANY, mysqld should proceed with address specified via wsrep_node_address or use one from network interfaces. Patch contributed by darkain (pull#115).
* | MDEV-8034 : wsrep_node_address can't be IPV6Nirbhay Choubey2015-09-151-29/+48
| | | | | | | | Updated address parsing logic to include IPv6 format.
* | Merge branch '10.0-galera' into 10.1Nirbhay Choubey2015-07-141-56/+30
| |
* | Changes in wsrep_guess_ip()Nirbhay Choubey2015-02-271-16/+13
| | | | | | | | | | * Changed loopback detection to be done via ifa->ifa_flags * Removed unused function wsrep_guess_address()
* | Merge 10.0-galera into 10.1Sergei Golubchik2015-02-061-6/+3
|\ \ | |/
| * Backported changes done in wsrep_guess_ip() from 10.1.Nirbhay Choubey2015-01-261-48/+25
| |
| * Merged patch for lp:1167368 from maria-5.5-galera.Nirbhay Choubey2014-12-081-4/+2
| |
| * MDEV-7131: [PATCH] wsrep_guess_ip doesn't compile on OpenBSDNirbhay Choubey2014-11-191-1/+1
| | | | | | | | | | | | Extend platform check to include OpenBSD. (Contributed by: Jonathan Matthew)
| * Merging revision from codership-mysql/5.5 (r3928..3968) andNirbhay Choubey2014-03-271-1/+4
| |\ | | | | | | | | | | | | | | | codership-mysql/5.6 (r4021..4065). - Also contains fixes for some build failures.
| | * bzr merge -r4062..4065 codership/5.6Nirbhay Choubey2014-03-261-3/+2
| |/