mirror of
https://github.com/MariaDB/server.git
synced 2025-05-05 16:59:35 +03:00
MDEV-7618 introduced configuration parameter innodb_instrument_semaphores in MariaDB Server 10.1. The parameter seems to only affect the rw-lock X-latch acquisition. Extra fields are added to rw_lock_t to remember one X-latch holder or waiter. These fields are not being consulted or reported anywhere. This is basically only adding code bloat. If the intention is to debug hangs or deadlocks, we have better tools for that in the debug server, and for the non-debug server, core dumps can reveal a lot. For example, the mini-transaction memo records the currently held buffer block or index rw-locks, to be released at mtr_t::commit(). The configuration parameter innodb_instrument_semaphores will be deprecated in 10.2.5 and removed in 10.3.0. rw_lock_t: Remove the members lock_name, file_name, line, thread_id which did not affect any output.
38 lines
1.0 KiB
Plaintext
38 lines
1.0 KiB
Plaintext
SET @start_use_trim = @@global.innodb_use_trim;
|
|
SELECT @start_use_trim;
|
|
@start_use_trim
|
|
1
|
|
SELECT COUNT(@@GLOBAL.innodb_use_trim);
|
|
COUNT(@@GLOBAL.innodb_use_trim)
|
|
1
|
|
1 Expected
|
|
SET @@GLOBAL.innodb_use_trim=1;
|
|
Warnings:
|
|
Warning 131 Using innodb_use_trim is deprecated and the parameter will be removed in MariaDB 10.3.
|
|
SELECT COUNT(@@GLOBAL.innodb_use_trim);
|
|
COUNT(@@GLOBAL.innodb_use_trim)
|
|
1
|
|
1 Expected
|
|
SELECT IF(@@GLOBAL.innodb_use_trim, 'ON', 'OFF') = VARIABLE_VALUE
|
|
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
|
WHERE VARIABLE_NAME='innodb_use_trim';
|
|
IF(@@GLOBAL.innodb_use_trim, 'ON', 'OFF') = VARIABLE_VALUE
|
|
1
|
|
1 Expected
|
|
SELECT COUNT(@@GLOBAL.innodb_use_trim);
|
|
COUNT(@@GLOBAL.innodb_use_trim)
|
|
1
|
|
1 Expected
|
|
SELECT COUNT(VARIABLE_VALUE)
|
|
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
|
WHERE VARIABLE_NAME='innodb_use_trim';
|
|
COUNT(VARIABLE_VALUE)
|
|
1
|
|
1 Expected
|
|
SET @@global.innodb_use_trim = @start_use_trim;
|
|
Warnings:
|
|
Warning 131 Using innodb_use_trim is deprecated and the parameter will be removed in MariaDB 10.3.
|
|
SELECT @@global.innodb_use_trim;
|
|
@@global.innodb_use_trim
|
|
1
|