mariadb/storage
Marko Mäkelä d46b42489a MDEV-24142 preparation: Add srw_mutex and srw_lock::u_lock()
The PERFORMANCE_SCHEMA insists on distinguishing read-update-write
locks from read-write locks, so we must add
template<bool support_u_lock> in rd_lock() and wr_lock() operations.

rd_lock::read_trylock(): Add template<bool prioritize_updater=false>
which is used by the srw_lock_low::read_lock() loop. As long as
an UPDATE lock has already been granted to some thread, we will grant
subsequent READ lock requests even if a waiting WRITE lock request
exists. This will be necessary to be compatible with existing usage
pattern of InnoDB rw_lock_t where the holder of SX-latch (which we
will rename to UPDATE latch) may acquire an additional S-latch
on the same object. For normal read-write locks without update operations
this should make no difference at all, because the rw_lock::UPDATER
flag would never be set.
2020-12-03 15:17:16 +02:00
..
archive Added 'final' to some classes to improve generated code 2020-08-04 17:27:32 +02:00
blackhole Merge 10.3 into 10.4 2020-11-03 14:49:17 +02:00
columnstore After-merge fix: Update ColumnStore 2020-11-24 09:09:40 +02:00
connect Merge 10.3 into 10.4 2020-11-03 14:49:17 +02:00
csv Added 'final' to some classes to improve generated code 2020-08-04 17:27:32 +02:00
example remove mysql_declare_plugin declaration from some plugins 2020-07-04 01:44:47 +02:00
federated replace HTON_AUTOMATIC_DELETE_TABLE with return -1 from drop_table() 2020-07-04 01:44:47 +02:00
federatedx Added 'final' to some classes to improve generated code 2020-08-04 17:27:32 +02:00
heap MDEV-22677 UPDATE crashes on partitioned HEAP table WITHOUT OVERLAPS 2020-11-02 14:11:43 +10:00
innobase MDEV-24142 preparation: Add srw_mutex and srw_lock::u_lock() 2020-12-03 15:17:16 +02:00
maria Merge 10.4 into 10.5 2020-11-13 21:54:21 +02:00
mroonga Merge 10.5 into 10.6 2020-12-03 08:12:47 +02:00
myisam Merge 10.4 into 10.5 2020-11-03 16:24:47 +02:00
myisammrg Added 'final' to some classes to improve generated code 2020-08-04 17:27:32 +02:00
oqgraph Merge 10.4 into 10.5 2020-12-02 18:29:49 +02:00
perfschema Merge 10.4 into 10.5 2020-11-03 16:24:47 +02:00
rocksdb Merge 10.5 into 10.6 2020-12-03 08:12:47 +02:00
sequence Added 'final' to some classes to improve generated code 2020-08-04 17:27:32 +02:00
sphinx Added 'final' to some classes to improve generated code 2020-08-04 17:27:32 +02:00
spider Merge 10.5 into 10.6 2020-11-02 12:49:19 +02:00
test_sql_discovery MDEV-19632 Replication aborts with ER_SLAVE_CONVERSION_FAILED upon CREATE ... SELECT in ORACLE mode 2020-08-01 07:43:50 +04:00