summaryrefslogtreecommitdiff
path: root/sql/wsrep_utils.cc
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |/
| * merge with MariaDB 5.6 bzr merge lp:maria --rtag:mariadb-10.0.6Seppo Jaakola2013-12-041-4/+6
| | | | | | | | | | | | and a number of fixes to make this buildable. Run also few short multi-master high conflict rate tests, with no issues
| * bzr merge -r3895..3903 lp:codership-mysql/5.5 Seppo Jaakola2013-11-261-1/+1
| | | | | | | | | | This is just before 5.5.34 merge in wsrep-5.5 branch
| * Merges from lp:codership-mysql/5.5 up to rev #3893, this changes to wsrep ↵Seppo Jaakola2013-11-261-19/+66
| | | | | | | | API #24
| * bzr merge -r3890..3891 lp:codership-mysql/5.5Seppo Jaakola2013-11-061-0/+4
| |
| * Merged revisions 3418..3424 from mariadb-galera-5.5Seppo Jaakola2013-10-071-1/+1
| |
| * Merge 10.0 to galera-10.0Jan Lindström2013-09-031-0/+468
|
* portability: use getifaddrs()Sergei Golubchik2014-10-011-44/+22
| | | | instead of exec'ing /usr/sbin/ifconfig|grep|sed|awk
* fixing embedded: WaaS. Wsrep as a Service.Sergei Golubchik2014-10-011-2/+1
|
* MDEV-6247: Merge 10.0-galera to 10.1.Jan Lindström2014-08-261-0/+524
Merged lp:maria/maria-10.0-galera up to revision 3879. Added a new functions to handler API to forcefully abort_transaction, producing fake_trx_id, get_checkpoint and set_checkpoint for XA. These were added for future possiblity to add more storage engines that could use galera replication.