MDEV-6258 MariaDB 10.0 performance schema timestamps relative to epoch
don't use the interval timer when absolute time values are needed
This commit is contained in:
parent
414e8388bf
commit
59cea2e1bf
3
mysql-test/suite/perfschema/r/mks_timer-6258.result
Normal file
3
mysql-test/suite/perfschema/r/mks_timer-6258.result
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
select distinct first_seen < DATE'2000-01-01', last_seen < DATE'2000-01-01' from performance_schema.events_statements_summary_by_digest;
|
||||||
|
first_seen < DATE'2000-01-01' last_seen < DATE'2000-01-01'
|
||||||
|
0 0
|
5
mysql-test/suite/perfschema/t/mks_timer-6258.test
Normal file
5
mysql-test/suite/perfschema/t/mks_timer-6258.test
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
--source include/not_embedded.inc
|
||||||
|
#
|
||||||
|
# MDEV-6258 MariaDB 10.0 performance schema timestamps relative to epoch
|
||||||
|
#
|
||||||
|
select distinct first_seen < DATE'2000-01-01', last_seen < DATE'2000-01-01' from performance_schema.events_statements_summary_by_digest;
|
@ -207,7 +207,7 @@ find_or_create_digest(PFS_thread *thread,
|
|||||||
PFS_statements_digest_stat **entry;
|
PFS_statements_digest_stat **entry;
|
||||||
PFS_statements_digest_stat *pfs= NULL;
|
PFS_statements_digest_stat *pfs= NULL;
|
||||||
|
|
||||||
ulonglong now= microsecond_interval_timer();
|
ulonglong now= my_hrtime().val;
|
||||||
|
|
||||||
search:
|
search:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user