mariadb/include
sjaakola ad432ef4c0 MDEV-24119 MDL BF-BF Conflict caused by TRUNCATE TABLE
This PR fixes same issue as MDEV-21577 for TRUNCATE TABLE.
MDEV-21577 fixed TOI replication for OPTIMIZE, REPAIR and ALTER TABLE
operating on FK child table. It was later found out that also TRUNCATE
has similar problem and needs a fix.

The actual fix is to do FK parent table lookup before TRUNCATE TOI
isolation and append found FK parent table names in certification key
list for the write set.

PR contains also new test scenario in galera_ddl_fk_conflict test where
FK child has two FK parent tables and there are two DML transactions operating
on both parent tables.

For development convenience, new TO isolation macro was added:
WSREP_TO_ISOLATION_BEGIN_IF and WSREP_TO_ISOLATION_BEGIN_ALTER macro was changed
to skip the goto statement.

Reviewed-by: Jan Lindström <jan.lindstrom@mariadb.com>
2020-11-11 17:46:50 +02:00
..
atomic MDEV-19696 - Cleanup gcc sync builtins 2019-07-03 12:11:22 +03:00
mysql Merge 10.3 into 10.4 2020-09-21 12:29:00 +03:00
aria_backup.h Add C_MODE_START to aria_backup.h 2019-03-08 10:18:20 +02:00
big_endian.h Update FSF address 2019-05-11 19:25:02 +03:00
byte_order_generic.h MDEV-21981 Replace arithmetic + with bitwise OR when possible 2020-03-19 15:09:13 +02:00
byte_order_generic_x86.h MDEV-21981 Replace arithmetic + with bitwise OR when possible 2020-03-19 15:09:13 +02:00
byte_order_generic_x86_64.h MDEV-21981 Replace arithmetic + with bitwise OR when possible 2020-03-19 15:09:13 +02:00
CMakeLists.txt Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
decimal.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
dur_prop.h Merge InnoDB 5.7 from mysql-5.7.9. 2016-09-02 13:22:28 +03:00
errmsg.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
ft_global.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
handler_ername.h Follow-up to changing FSF address 2019-05-11 18:30:45 +03:00
handler_state.h Fix for MDEV-533: Confusing error code when doing auto-increment insert for out-of-range values 2012-09-18 15:14:19 +03:00
hash.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
heap.h Merge 5.5 into 10.1 2019-11-06 08:17:03 +02:00
ilist.h Merge 10.3 into 10.4, except MDEV-22543 2020-08-13 18:48:41 +03:00
json_lib.h MDEV-5313 Improving audit API. 2019-01-18 03:18:02 +04:00
keycache.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
lf.h Shrink my_atomic.h and my_cpu.h scope 2020-04-15 22:23:03 +04:00
little_endian.h Update FSF address 2019-05-11 19:25:02 +03:00
m_ctype.h Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
m_string.h Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
ma_dyncol.h MDEV-7533: COLUMN_JSON() doesn't escape control characters in string values 2018-01-23 13:06:39 +01:00
maria.h MDEV-20001 Potential dangerous regression: INSERT INTO >=100 rows fail for myisam table with HASH indexes 2020-02-03 12:44:31 +05:30
my_alarm.h MDEV-20685: compile fixes for Solaris/OSX/AIX 2020-04-29 12:02:47 +03:00
my_alloc.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_atomic.h Move c++ code from my_atomic.h to my_atomic_wrapper.h 2020-05-19 14:07:34 +03:00
my_atomic_wrapper.h Merge 10.3 into 10.4 2020-09-03 16:55:14 +03:00
my_attribute.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_base.h MDEV-22401: Optimizer trace: multi-component range is not printed correctly 2020-04-29 16:31:16 +03:00
my_bit.h Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
my_bitmap.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_byteorder.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_check_opt.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_compare.h MDEV-21794: Optimizer flag rowid_filter leads to long query 2020-05-07 12:27:17 +02:00
my_compiler.h Merge 10.2 into 10.3 2020-06-05 16:51:26 +03:00
my_context.h Merge branch '10.1' into 10.2 2016-03-23 22:36:46 +01:00
my_counter.h MDEV-22456 after-merge fix: introduce Atomic_relaxed 2020-05-18 15:02:55 +03:00
my_cpu.h MDEV-23633 fixup: Add missing semicolon 2020-09-04 11:40:17 +03:00
my_crypt.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_dbug.h Merge branch '10.2' into 10.3 2020-05-04 16:47:11 +02:00
my_decimal_limits.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_default.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_dir.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_getopt.h MDEV-18215: mariabackup does not report unknown command line options 2020-06-14 13:23:07 +03:00
my_global.h Merge 10.3 into 10.4 2020-05-05 20:33:10 +03:00
my_handler_errors.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_libwrap.h Update FSF Address 2019-05-11 21:29:06 +03:00
my_list.h Update FSF Address 2019-05-11 21:29:06 +03:00
my_md5.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_net.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_nosys.h Update FSF Address 2019-05-11 21:29:06 +03:00
my_pthread.h Merge 10.3 into 10.4 2020-04-27 17:38:17 +03:00
my_rdtsc.h MDEV-23249: Support aarch64 architecture timer 2020-07-23 15:07:13 +03:00
my_rnd.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_service_manager.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_stacktrace.h Merge 10.2 into 10.3 2020-08-20 09:12:16 +03:00
my_sys.h Merge 10.3 into 10.4 2020-11-03 14:49:17 +02:00
my_time.h MDEV-23311 CEILING() and FLOOR() convert temporal input to numbers, unlike ROUND() and TRUNCATE() 2020-07-28 23:29:08 +04:00
my_tree.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_uctype.h Update FSF Address 2019-05-11 21:29:06 +03:00
my_user.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
my_valgrind.h MDEV-20377 post-fix: Introduce MEM_MAKE_ADDRESSABLE 2020-07-02 17:59:28 +03:00
my_xml.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
myisam.h MDEV-20001 Potential dangerous regression: INSERT INTO >=100 rows fail for myisam table with HASH indexes 2020-02-03 12:44:31 +05:30
myisamchk.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
myisammrg.h MDEV-19955 make argument of handler::ha_write_row() const 2019-07-05 13:14:19 +03:00
myisampack.h MDEV-21981 Replace arithmetic + with bitwise OR when possible 2020-03-19 15:09:13 +02:00
mysql.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
mysql.h.pp Merge 10.2 into 10.3 2019-02-19 17:41:13 +02:00
mysql_async.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
mysql_com.h Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
mysql_com_server.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mysql_embed.h Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
mysql_time.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mysql_version.h.in Merge 10.3 into 10.4 2020-10-29 13:38:38 +02:00
mysqld_default_groups.h Fixed that mariadb-# binaries reads their corresponding entry from my.cnf 2019-07-18 15:32:22 +03:00
mysys_err.h Update FSF Address 2019-05-11 21:29:06 +03:00
pack.h Merge branch '10.2' into bb-10.2-connector-c-integ-subm 2016-09-21 12:54:56 +02:00
password.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
probes_mysql.d.base Update FSF Address 2019-05-11 21:29:06 +03:00
probes_mysql.h Update FSF Address 2019-05-11 21:29:06 +03:00
probes_mysql_nodtrace.h.in Merge branch '5.5' into 10.0 2016-02-15 22:50:59 +01:00
queues.h Merge branch '10.2' into 10.3 2020-05-04 16:47:11 +02:00
rijndael.h Update FSF Address 2019-05-11 21:29:06 +03:00
scope.h MDEV-22438 add a function similar to std::make_scope_exit() 2020-06-22 12:12:29 +03:00
service_versions.h Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
source_revision.h.in SOURCE_REVISION should always be defined in source_revision.h 2017-11-01 13:20:32 +00:00
span.h span cleanup 2020-05-15 16:25:32 +03:00
sql_common.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
ssl_compat.h Update WolfSSL 2020-05-08 11:51:03 +02:00
sslopt-case.h Merge 10.3 into 10.4 2019-12-13 17:30:37 +02:00
sslopt-longopts.h MDEV-14101 Provide an option to select TLS protocol version 2019-06-17 12:26:25 +02:00
sslopt-vars.h MDEV-14101 Provide an option to select TLS protocol version 2019-06-17 12:26:25 +02:00
t_ctype.h Update FSF Address 2019-05-11 21:29:06 +03:00
thr_alarm.h Update FSF Address 2019-05-11 21:29:06 +03:00
thr_lock.h MDEV-20848 Fixes for MTR test galera_sr.GCF-1060 (#1421) 2019-12-04 09:21:14 +02:00
thr_timer.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
thread_pool_priv.h Merge branch '10.3' into 10.4 2019-05-19 20:55:37 +02:00
typelib.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
violite.h Merge 10.3 into 10.4 2020-08-10 21:08:46 +03:00
waiting_threads.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
welcome_copyright_notice.h Update FSF Address 2019-05-11 21:29:06 +03:00
wqueue.h Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
wsrep.h MDEV-24119 MDL BF-BF Conflict caused by TRUNCATE TABLE 2020-11-11 17:46:50 +02:00