[MDEV-24572] trx_t::start_time_micro for recovered or internal transactions is wrong Created: 2021-01-11  Updated: 2023-04-27

Status: Open
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Affects Version/s: 10.2.26, 10.1.41, 10.3.17, 10.4.7, 10.5.0
Fix Version/s: 10.4, 10.5

Type: Bug Priority: Major
Reporter: Marko Mäkelä Assignee: Marko Mäkelä
Resolution: Unresolved Votes: 0
Labels: recovery


 Description   

A clean-up that was performed about the same time with MDEV-14154 used the wrong source for a microsecond timer. The trx_t::start_time_micro is supposed to be initialized from my_hrtime() or my_hrtime_coarse(), not from the monotonic microsecond_interval_timer().

The impact of this is unclear, but it should be minimal. Both internal and recovered transactions ought to have priority over user transactions. On my Debian GNU/Linux system on AMD64, both timestamps look similar. The my_hrtime_coarse() should involve less overhead than microsecond_interval_timer().


Generated at Thu Feb 08 09:31:00 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.