mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-8692 prefschema test failures on ARM (on Debian build system)
A few tests assumes that the CYCLE timer is always available, which is not true on some platforms (e.g. ARM). Fixing the tests not to reply on the CYCLE availability.
This commit is contained in:
@ -291,7 +291,7 @@ TRUNCATE TABLE performance_schema.events_waits_current;
|
||||
--echo # Grant access to change tables with the root account
|
||||
|
||||
GRANT UPDATE ON performance_schema.setup_consumers TO pfs_user_4;
|
||||
GRANT UPDATE ON performance_schema.setup_timers TO pfs_user_4;
|
||||
GRANT UPDATE, SELECT ON performance_schema.setup_timers TO pfs_user_4;
|
||||
GRANT UPDATE, SELECT ON performance_schema.setup_instruments TO pfs_user_4;
|
||||
GRANT DROP ON performance_schema.events_waits_current TO pfs_user_4;
|
||||
GRANT DROP ON performance_schema.events_waits_history TO pfs_user_4;
|
||||
@ -308,7 +308,11 @@ WHERE name LIKE 'wait/synch/mutex/%'
|
||||
|
||||
UPDATE performance_schema.setup_consumers SET enabled = 'YES';
|
||||
|
||||
UPDATE performance_schema.setup_timers SET timer_name = 'TICK';
|
||||
# We do not touch "wait", to avoid restoring it at the end of the test,
|
||||
# as its default value initialized at server startup is ambiguous:
|
||||
# it can be CYCLE or NANOSECOND depending on platform
|
||||
|
||||
UPDATE performance_schema.setup_timers SET timer_name = 'TICK' WHERE name <> "wait";
|
||||
|
||||
TRUNCATE TABLE performance_schema.events_waits_history_long;
|
||||
TRUNCATE TABLE performance_schema.events_waits_history;
|
||||
@ -324,8 +328,9 @@ flush privileges;
|
||||
UPDATE performance_schema.setup_instruments SET enabled = 'YES', timed = 'YES';
|
||||
UPDATE performance_schema.setup_consumers SET enabled = 'YES';
|
||||
|
||||
# Restore the default values for the timers that we changed.
|
||||
# Note, we did not touch "wait", see above.
|
||||
UPDATE performance_schema.setup_timers SET timer_name = 'MICROSECOND' where name="idle";
|
||||
UPDATE performance_schema.setup_timers SET timer_name = 'CYCLE' where name="wait";
|
||||
UPDATE performance_schema.setup_timers SET timer_name = 'NANOSECOND' where name="stage";
|
||||
UPDATE performance_schema.setup_timers SET timer_name = 'NANOSECOND' where name="statement";
|
||||
|
||||
|
Reference in New Issue
Block a user