mariadb/scripts
Daniele Sciascia 4d2b552369 Fix FK constraint violation in applier, after ALTER TABLE ADD FK
Adding a FK constraint to an existing table (ALTER TABLE ADD FOREIGN
KEY) causes the applier to fail, if a concurrent DML statement that
violate the new constraint (i.e. a DELETE or UPDATE of record in the
parent table).

For exmaple, the following scenario causes a crash in the applier:

1. ALTER successfully adds FK constraint in node_1
2. On node_2 is UPDATE is in pre_commit() and has certified successfully
3. ALTER is delivered in node_2 and BF aborts DML
4. Applying UPDATE event causes FK violation in node_1

To avoid this situation it is necessary for UPDATE to fail during
certification. And for the UPDATE to fail certfication it is necessary
that ALTER appends certification keys for both the child and the parent
table. Before this patch, ALTER TABLE ADD FK only appended keys for
child table which is ALTERed.
2018-08-02 09:03:27 +03:00
..
CMakeLists.txt Merge tag 'mariadb-5.5.58' into 5.5-galera 2017-10-19 09:06:17 +03:00
comp_sql.c mysql-5.5.37 selective merge 2014-03-27 22:26:58 +01:00
convert-debug-for-diff.sh rename debug variable to debug_dbug, to make test pass in release builds 2011-12-15 22:07:58 +01:00
dheadgen.pl BUG#25719975 SHEBANG HARD CODED AS /USR/BIN/PERL IN SCRIPTS, BREAKS ON FREEBSD 2017-03-28 13:22:32 +02:00
fill_help_tables.sql Updated/added copyright header. Added line "use is subject to license terms" 2014-02-17 18:19:04 +05:30
make_binary_distribution.sh Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
make_win_bin_dist remove PBXT 2013-08-30 11:25:49 +02:00
msql2mysql.sh Updated/added copyright header. Added line "use is subject to license terms" 2014-02-17 18:19:04 +05:30
mysql_config.pl Fix FK constraint violation in applier, after ALTER TABLE ADD FK 2018-08-02 09:03:27 +03:00
mysql_config.pl.in Merge remote-tracking branch 'mysql/5.5' into 5.5 2017-07-18 14:59:10 +02:00
mysql_config.sh MDEV-7028 mysql_config produces invalid cflags (was: udf_example.c couldn't compile) 2014-11-18 15:43:01 +01:00
mysql_convert_table_format.sh Merge remote-tracking branch 'mysql/5.5' into 5.5 2017-07-18 14:59:10 +02:00
mysql_find_rows.sh BUG#25719975 SHEBANG HARD CODED AS /USR/BIN/PERL IN SCRIPTS, BREAKS ON FREEBSD 2017-03-28 13:22:32 +02:00
mysql_fix_extensions.sh BUG#25719975 SHEBANG HARD CODED AS /USR/BIN/PERL IN SCRIPTS, BREAKS ON FREEBSD 2017-03-28 13:22:32 +02:00
mysql_install_db.pl.in MDEV-15050 scripts: mysql_install_db.{sh|pl}, mysqld_multi - mysqld is in @sbindir@ 2018-07-16 18:36:28 +02:00
mysql_install_db.sh MDEV-15050 scripts: mysql_install_db.{sh|pl}, mysqld_multi - mysqld is in @sbindir@ 2018-07-16 18:36:28 +02:00
mysql_performance_tables.sql Fixed problem with failing mysql_upgrade when proc table was not correct. 2013-01-11 00:53:07 +02:00
mysql_secure_installation.pl.in Merge remote-tracking branch 'mysql/5.5' into 5.5 2017-07-18 14:59:10 +02:00
mysql_secure_installation.sh Merge remote-tracking branch 'mysql/5.5' into 5.5 2017-04-11 10:18:04 -04:00
mysql_setpermission.sh BUG#25719975 SHEBANG HARD CODED AS /USR/BIN/PERL IN SCRIPTS, BREAKS ON FREEBSD 2017-03-28 13:22:32 +02:00
mysql_system_tables.sql MySQL-5.5.36 merge 2014-02-17 11:00:51 +01:00
mysql_system_tables_data.sql MySQL-5.5.35 merge 2014-01-22 15:29:36 +01:00
mysql_system_tables_fix.sql mysql-5.5.40 2014-10-06 19:53:55 +02:00
mysql_test_data_timezone.sql Updated/added copyright header. Added line "use is subject to license terms" 2014-02-17 18:19:04 +05:30
mysql_zap.sh BUG#25719975 SHEBANG HARD CODED AS /USR/BIN/PERL IN SCRIPTS, BREAKS ON FREEBSD 2017-03-28 13:22:32 +02:00
mysqlaccess.conf BUG#25719975 SHEBANG HARD CODED AS /USR/BIN/PERL IN SCRIPTS, BREAKS ON FREEBSD 2017-03-28 13:22:32 +02:00
mysqlaccess.sh Merge remote-tracking branch 'mysql/5.5' into 5.5 2017-07-18 14:59:10 +02:00
mysqlbug.sh mysql-5.5.37 selective merge 2014-03-27 22:26:58 +01:00
mysqld_multi.sh Merge tag 'mariadb-5.5.61' into 5.5-galera 2018-08-01 10:58:38 +03:00
mysqld_safe.sh Merge tag 'mariadb-5.5.59' into 5.5-galera 2018-01-19 19:22:00 +02:00
mysqldumpslow.sh Merge remote-tracking branch 'mysql/5.5' into 5.5 2017-07-18 14:59:10 +02:00
mysqlhotcopy.sh Merge remote-tracking branch 'mysql/5.5' into 5.5 2017-07-18 14:59:10 +02:00
mytop.sh Fix for MDEV-5547: Bad error message when moving very old .frm files to MariaDB 5.5. 2014-01-22 15:16:57 +02:00
wsrep_sst_common.sh Slight cleanup improvement on a previous commit. 2015-09-09 17:03:31 -04:00
wsrep_sst_mysqldump.sh Fixes codership/mysql-wsrep#153 use --defaults-extra-file with mysqldump SST 2015-09-09 17:03:32 -04:00
wsrep_sst_rsync.sh MDEV-10487: Galera SST using rsync does not filter out lost+found 2016-08-03 22:15:57 -04:00
wsrep_sst_xtrabackup-v2.sh MDEV-13478 Full SST sync fails because of the error in the cleaning part 2017-12-20 00:06:02 +05:30
wsrep_sst_xtrabackup.sh MDEV-10853 netcat help output in error log when running xtrabackup SST 2016-09-22 17:26:18 -04:00