mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-7728 - Improve xid cache scalability by using lock-free hash
XID cache is now based on lock-free hash. Also fixed lf_hash_destroy() to call alloc destructor. Note that previous implementation had race condition when thread was accessing XA owned by different thread. This new implementation doesn't fix it either.
This commit is contained in:
@ -5,14 +5,14 @@ SELECT * FROM performance_schema.setup_instruments
|
||||
WHERE name IN (
|
||||
'wait/synch/mutex/sql/LOCK_user_conn',
|
||||
'wait/synch/mutex/sql/LOCK_uuid_generator',
|
||||
'wait/synch/mutex/sql/LOCK_xid_cache',
|
||||
'wait/synch/mutex/sql/LOCK_plugin',
|
||||
'stage/sql/creating table')
|
||||
AND enabled = 'yes' AND timed = 'no'
|
||||
ORDER BY name;
|
||||
NAME ENABLED TIMED
|
||||
stage/sql/creating table YES NO
|
||||
wait/synch/mutex/sql/LOCK_plugin YES NO
|
||||
wait/synch/mutex/sql/LOCK_user_conn YES NO
|
||||
wait/synch/mutex/sql/LOCK_xid_cache YES NO
|
||||
SELECT * FROM performance_schema.setup_instruments
|
||||
WHERE name = 'wait/synch/mutex/sql/LOCK_thread_count'
|
||||
AND enabled = 'no' AND timed = 'no';
|
||||
|
Reference in New Issue
Block a user