mariadb/include
Jan Lindström 224c950462 MDEV-23101 : SIGSEGV in lock_rec_unlock() when Galera is enabled
Remove incorrect BF (brute force) handling from lock_rec_has_to_wait_in_queue
and move condition to correct callers. Add a function to report
BF lock waits and assert if incorrect BF-BF lock wait happens.

wsrep_report_bf_lock_wait
	Add a new function to report BF lock wait.

wsrep_assert_no_bf_bf_wait
	Add a new function to check do we have a
	BF-BF wait and if we have report this case
	and assert as it is a bug.

lock_rec_has_to_wait
	Use new wsrep_assert_bf_wait to check BF-BF wait.

lock_rec_create_low
lock_table_create
	Use new function to report BF lock waits.

lock_rec_insert_by_trx_age
lock_grant_and_move_on_page
lock_grant_and_move_on_rec
	Assert that trx is not Galera as VATS is not compatible
	with Galera.

lock_rec_add_to_queue
	If there is conflicting lock in a queue make sure that
	transaction is BF.

lock_rec_has_to_wait_in_queue
	Remove incorrect BF handling. If there is conflicting
	locks in a queue all transactions must wait.

lock_rec_dequeue_from_page
lock_rec_unlock
	If there is conflicting lock make sure it is not
	BF-BF case.

lock_rec_queue_validate
	Add Galera record locking rules comment and use
	new function to report BF lock waits.

All attempts to reproduce the original assertion have been
failed. Therefore, there is no test case on this commit.
2020-09-10 13:18:12 +03:00
..
atomic Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
mysql MDEV-23101 : SIGSEGV in lock_rec_unlock() when Galera is enabled 2020-09-10 13:18:12 +03: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.1 into 10.2 2019-05-13 17:54:04 +03:00
heap.h Merge 5.5 into 10.1 2019-11-06 08:17:03 +02:00
ilist.h Use DBUG_ASSERT(ptr != NULL) to ease merging to 10.3 2020-08-12 13:08:17 +03:00
json_lib.h MDEV-17121 JSON_ARRAY_APPEND. 2018-09-11 14:37:45 +04:00
keycache.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
lf.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
little_endian.h Update FSF address 2019-05-11 19:25:02 +03:00
m_ctype.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
m_string.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03: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 imporve clang build 2019-06-25 13:21:36 +03:00
my_alarm.h MDEV-20685: compile fixes for Solaris/OSX/AIX 2020-04-29 12:02:47 +03:00
my_alloc.h Update FSF Address 2019-05-11 21:29:06 +03:00
my_atomic.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_attribute.h Update FSF Address 2019-05-11 21:29:06 +03:00
my_base.h Merge branch '10.1' into 10.2 2019-06-13 16:42:21 +02:00
my_bit.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_bitmap.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +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 Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
my_compiler.h MDEV-22721 Remove bloat caused by InnoDB logger class 2020-06-04 10:24:10 +03:00
my_context.h Merge branch '10.1' into 10.2 2016-03-23 22:36:46 +01:00
my_cpu.h Update FSF address 2019-05-10 20:52:00 +03:00
my_crypt.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_dbug.h add WITH_DBUG_TRACE CMake variable 2020-04-29 20:13:14 +03: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.1 into 10.2 2019-05-13 17:54:04 +03:00
my_getopt.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_global.h MDEV-20685: compile fixes for Solaris/OSX/AIX 2020-04-29 12:02:47 +03:00
my_handler_errors.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +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 branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_nosys.h Update FSF Address 2019-05-11 21:29:06 +03:00
my_pthread.h cleanup THR_KEY_mysys 2020-04-25 00:55:39 +03:00
my_rdtsc.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +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.1 into 10.2 2020-08-20 06:00:36 +03:00
my_sys.h MDEV-19750 mysql command wrong encoding 2019-06-17 18:04:47 +01:00
my_time.h Merge 10.1 into 10.2 2019-08-28 15:23:21 +03:00
my_tree.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_uctype.h Update FSF Address 2019-05-11 21:29:06 +03:00
my_user.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
my_valgrind.h MDEV-20377: Make WITH_MSAN more usable 2020-07-01 17:23:00 +03:00
my_xml.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
myisam.h imporve clang build 2019-06-25 13:21:36 +03:00
myisamchk.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
myisammrg.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +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.1 into 10.2 2019-05-13 17:54:04 +03:00
mysql.h.pp Merge 10.1 into 10.2 2019-02-03 17:22:05 +02:00
mysql_async.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
mysql_com.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
mysql_com_server.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mysql_embed.h Update FSF Address 2019-05-11 21:29:06 +03:00
mysql_time.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
mysql_version.h.in MDEV-7067: Server outputs Galera (WSREP) information, even if Galera is disabled 2015-05-29 11:26:46 -04:00
mysqld_default_groups.h MDEV-34 delete storage/ndb and sql/*ndb* (and collateral changes) 2014-10-11 18:53:06 +02: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 Update FSF Address 2019-05-11 21:29:06 +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 '5.5' into 10.1 2020-04-30 17:36:41 +02:00
rijndael.h Update FSF Address 2019-05-11 21:29:06 +03:00
service_versions.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03: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 MDEV-15596 10.2 doesn't work with openssl 1.1.1 2018-06-21 10:15:27 +02:00
sslopt-case.h CONC-447 ERROR 2026 (HY000): SSL connection error: Certificate signature check failed 2019-12-08 18:26:16 +01:00
sslopt-longopts.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
sslopt-vars.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03: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 Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
thr_timer.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00
thread_pool_priv.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
typelib.h Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
violite.h MDEV-20685: compile fixes for Solaris/OSX/AIX 2020-04-29 12:02:47 +03:00
waiting_threads.h Update FSF address 2019-05-10 20:52:00 +03:00
welcome_copyright_notice.h Update FSF Address 2019-05-11 21:29:06 +03:00
wqueue.h Update FSF address 2019-05-10 20:52:00 +03:00
wsrep.h Merge branch '5.5' into 10.1 2019-05-11 22:19:05 +03:00